{"id":10198,"date":"2025-05-10T05:48:28","date_gmt":"2025-05-10T05:48:28","guid":{"rendered":"https:\/\/www.magetop.com\/blog\/?p=10198"},"modified":"2025-05-10T05:48:31","modified_gmt":"2025-05-10T05:48:31","slug":"how-to-install-docker-on-ubuntu","status":"publish","type":"post","link":"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/","title":{"rendered":"How To Install Docker On Ubuntu"},"content":{"rendered":"\n<p>Docker is an essential tool for modern development, and installing it on Ubuntu is quick and straightforward. In this guide, you&#8217;ll learn how to install Docker on Ubuntu step-by-step and run your first container in minutes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Steps To Install Docker On Ubuntu<\/h2>\n\n\n\n<p><strong>Step 1: Update Your Package Index<\/strong><\/p>\n\n\n\n<p>Before installing any new packages, it\u2019s always good practice to update your local index:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo apt update\nsudo apt upgrade -y\n<\/pre><\/div>\n\n\n<p><strong>Step 2: Install Required Dependencies<\/strong><\/p>\n\n\n\n<p>Docker needs a few packages before it can be installed:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo apt install \\\n    ca-certificates \\\n    curl \\\n    gnupg \\\n    lsb-release -y\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"452\" data-attachment-id=\"10200\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/screenshot-3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot-2.png?fit=1121%2C633&amp;ssl=1\" data-orig-size=\"1121,633\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot-2.png?fit=300%2C169&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot-2.png?fit=800%2C452&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot-2.png?resize=800%2C452&#038;ssl=1\" alt=\"\" class=\"wp-image-10200\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot-2.png?resize=1024%2C578&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot-2.png?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot-2.png?resize=768%2C434&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot-2.png?w=1121&amp;ssl=1 1121w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p><strong>Step 3: Add Docker\u2019s Official GPG Key<\/strong><\/p>\n\n\n\n<p>This key ensures that you&#8217;re downloading authentic Docker packages:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo mkdir -p \/etc\/apt\/keyrings\ncurl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | \\\nsudo gpg --dearmor -o \/etc\/apt\/keyrings\/docker.gpg\n<\/pre><\/div>\n\n\n<p><strong>Step 4: Set Up the Docker Repository<\/strong><\/p>\n\n\n\n<p>Add the Docker repository to your APT sources:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\necho \\\n  &quot;deb &#x5B;arch=$(dpkg --print-architecture) \\\n  signed-by=\/etc\/apt\/keyrings\/docker.gpg] \\\n  https:\/\/download.docker.com\/linux\/ubuntu \\\n  $(lsb_release -cs) stable&quot; | \\\n  sudo tee \/etc\/apt\/sources.list.d\/docker.list &gt; \/dev\/null\n<\/pre><\/div>\n\n\n<p><strong>Step 5: Install Docker Engine<\/strong><\/p>\n\n\n\n<p>Update your index again and install Docker:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo apt update\nsudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"452\" data-attachment-id=\"10201\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/screenshot_1-16\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot_1-3.png?fit=1122%2C633&amp;ssl=1\" data-orig-size=\"1122,633\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot_1\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot_1-3.png?fit=300%2C169&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot_1-3.png?fit=800%2C452&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot_1-3.png?resize=800%2C452&#038;ssl=1\" alt=\"\" class=\"wp-image-10201\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot_1-3.png?resize=1024%2C578&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot_1-3.png?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot_1-3.png?resize=768%2C433&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot_1-3.png?w=1122&amp;ssl=1 1122w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p><strong>Step 6: Verify Docker Installation<\/strong><\/p>\n\n\n\n<p>Check that Docker is installed and running:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo docker --version\nsudo docker run hello-world\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"452\" data-attachment-id=\"10202\" data-permalink=\"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/screenshot_2-11\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot_2-2.png?fit=1121%2C633&amp;ssl=1\" data-orig-size=\"1121,633\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot_2\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot_2-2.png?fit=300%2C169&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot_2-2.png?fit=800%2C452&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot_2-2.png?resize=800%2C452&#038;ssl=1\" alt=\"\" class=\"wp-image-10202\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot_2-2.png?resize=1024%2C578&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot_2-2.png?resize=300%2C169&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot_2-2.png?resize=768%2C434&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Screenshot_2-2.png?w=1121&amp;ssl=1 1121w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>The <code>hello-world<\/code> image is a small container that prints a success message \u2014 a perfect way to confirm everything works.<\/p>\n\n\n\n<p><strong>Step 7: (Optional) Run Docker Without <code>sudo<\/code><\/strong><\/p>\n\n\n\n<p>To avoid typing <code>sudo<\/code> every time:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nsudo usermod -aG docker $USER\nnewgrp docker\n<\/pre><\/div>\n\n\n<p>Then test again:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ndocker run hello-world\n<\/pre><\/div>\n\n\n<p>You\u2019ve successfully installed Docker on Ubuntu and run your first container. From here, you can start pulling images, creating containers, and even building your own Dockerfiles.<\/p>\n\n\n\n<p>You can read more useful articles like\u00a0<strong><strong><a href=\"https:\/\/www.magetop.com\/blog\/getting-started-with-docker-a-beginner-friendly-guide\/\">Getting Started with Docker: A Beginner-Friendly Guide<\/a><\/strong><\/strong>.<\/p>\n\n\n\n<p>Follow us for the more helpful posts!<\/p>\n\n\n\n<p>We hope this is a useful post for you.<\/p>\n\n\n\n<p>Thank you for reading!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Docker is an essential tool for modern development, and installing it on Ubuntu is quick and straightforward. In this guide,<\/p>\n","protected":false},"author":106,"featured_media":10204,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[2306,2312,2310],"class_list":["post-10198","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento-2-tutorials","tag-docker","tag-how-to-install-docker-on-ubuntu","tag-install-docker"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Install Docker On Ubuntu - Magetop Blog<\/title>\n<meta name=\"description\" content=\"Docker is an essential tool for modern development, and installing it on Ubuntu is quick and straightforward. In this guide, you&#039;ll learn how to install Docker on Ubuntu step-by-step and run your first container in minutes.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Install Docker On Ubuntu - Magetop Blog\" \/>\n<meta property=\"og:description\" content=\"Docker is an essential tool for modern development, and installing it on Ubuntu is quick and straightforward. In this guide, you&#039;ll learn how to install Docker on Ubuntu step-by-step and run your first container in minutes.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/\" \/>\n<meta property=\"og:site_name\" content=\"Magetop Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/MagetopStore\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-10T05:48:28+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-10T05:48:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/How-To-Install-Docker-On-Ubuntu.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1355\" \/>\n\t<meta property=\"og:image:height\" content=\"753\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Aaron LX\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:site\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Aaron LX\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/\"},\"author\":{\"name\":\"Aaron LX\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7\"},\"headline\":\"How To Install Docker On Ubuntu\",\"datePublished\":\"2025-05-10T05:48:28+00:00\",\"dateModified\":\"2025-05-10T05:48:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/\"},\"wordCount\":226,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/How-To-Install-Docker-On-Ubuntu.png?fit=1355%2C753&ssl=1\",\"keywords\":[\"Docker\",\"How To Install Docker On Ubuntu\",\"Install Docker\"],\"articleSection\":[\"Magento 2 Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/\",\"url\":\"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/\",\"name\":\"How To Install Docker On Ubuntu - Magetop Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/How-To-Install-Docker-On-Ubuntu.png?fit=1355%2C753&ssl=1\",\"datePublished\":\"2025-05-10T05:48:28+00:00\",\"dateModified\":\"2025-05-10T05:48:31+00:00\",\"description\":\"Docker is an essential tool for modern development, and installing it on Ubuntu is quick and straightforward. In this guide, you'll learn how to install Docker on Ubuntu step-by-step and run your first container in minutes.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/How-To-Install-Docker-On-Ubuntu.png?fit=1355%2C753&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/How-To-Install-Docker-On-Ubuntu.png?fit=1355%2C753&ssl=1\",\"width\":1355,\"height\":753,\"caption\":\"How To Install Docker On Ubuntu\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.magetop.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Install Docker On Ubuntu\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"name\":\"Magetop Blog\",\"description\":\"Exploring Magento Tips, Tricks, and Trends\",\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.magetop.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\",\"name\":\"Magetop.com\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"width\":475,\"height\":475,\"caption\":\"Magetop.com\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/MagetopStore\",\"https:\/\/x.com\/MagetopStore\",\"https:\/\/www.linkedin.com\/company\/magetop\",\"https:\/\/www.pinterest.com\/magetop\",\"https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7\",\"name\":\"Aaron LX\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1\",\"caption\":\"Aaron LX\"},\"description\":\"Aaron is a passionate writer, crazy about shopping, eCommerce and trends. Besides his outstanding research skills and a positive mind, Aaron eagerly shares his experience with the readers.\",\"url\":\"https:\/\/www.magetop.com\/blog\/author\/aaron-lx\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Install Docker On Ubuntu - Magetop Blog","description":"Docker is an essential tool for modern development, and installing it on Ubuntu is quick and straightforward. In this guide, you'll learn how to install Docker on Ubuntu step-by-step and run your first container in minutes.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/","og_locale":"en_US","og_type":"article","og_title":"How To Install Docker On Ubuntu - Magetop Blog","og_description":"Docker is an essential tool for modern development, and installing it on Ubuntu is quick and straightforward. In this guide, you'll learn how to install Docker on Ubuntu step-by-step and run your first container in minutes.","og_url":"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/","og_site_name":"Magetop Blog","article_publisher":"https:\/\/www.facebook.com\/MagetopStore","article_published_time":"2025-05-10T05:48:28+00:00","article_modified_time":"2025-05-10T05:48:31+00:00","og_image":[{"width":1355,"height":753,"url":"https:\/\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/How-To-Install-Docker-On-Ubuntu.png","type":"image\/png"}],"author":"Aaron LX","twitter_card":"summary_large_image","twitter_creator":"@MagetopStore","twitter_site":"@MagetopStore","twitter_misc":{"Written by":"Aaron LX","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/#article","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/"},"author":{"name":"Aaron LX","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7"},"headline":"How To Install Docker On Ubuntu","datePublished":"2025-05-10T05:48:28+00:00","dateModified":"2025-05-10T05:48:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/"},"wordCount":226,"commentCount":0,"publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/How-To-Install-Docker-On-Ubuntu.png?fit=1355%2C753&ssl=1","keywords":["Docker","How To Install Docker On Ubuntu","Install Docker"],"articleSection":["Magento 2 Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/","url":"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/","name":"How To Install Docker On Ubuntu - Magetop Blog","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/#primaryimage"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/How-To-Install-Docker-On-Ubuntu.png?fit=1355%2C753&ssl=1","datePublished":"2025-05-10T05:48:28+00:00","dateModified":"2025-05-10T05:48:31+00:00","description":"Docker is an essential tool for modern development, and installing it on Ubuntu is quick and straightforward. In this guide, you'll learn how to install Docker on Ubuntu step-by-step and run your first container in minutes.","breadcrumb":{"@id":"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/#primaryimage","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/How-To-Install-Docker-On-Ubuntu.png?fit=1355%2C753&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/How-To-Install-Docker-On-Ubuntu.png?fit=1355%2C753&ssl=1","width":1355,"height":753,"caption":"How To Install Docker On Ubuntu"},{"@type":"BreadcrumbList","@id":"https:\/\/www.magetop.com\/blog\/how-to-install-docker-on-ubuntu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.magetop.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Install Docker On Ubuntu"}]},{"@type":"WebSite","@id":"https:\/\/www.magetop.com\/blog\/#website","url":"https:\/\/www.magetop.com\/blog\/","name":"Magetop Blog","description":"Exploring Magento Tips, Tricks, and Trends","publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.magetop.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.magetop.com\/blog\/#organization","name":"Magetop.com","url":"https:\/\/www.magetop.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","width":475,"height":475,"caption":"Magetop.com"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/MagetopStore","https:\/\/x.com\/MagetopStore","https:\/\/www.linkedin.com\/company\/magetop","https:\/\/www.pinterest.com\/magetop","https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA"]},{"@type":"Person","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/b8770690a02cc53a273d6b7205229ff7","name":"Aaron LX","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/11\/475315059_122137709240563546_260104055231757176_n.jpg?fit=96%2C96&#038;ssl=1","caption":"Aaron LX"},"description":"Aaron is a passionate writer, crazy about shopping, eCommerce and trends. Besides his outstanding research skills and a positive mind, Aaron eagerly shares his experience with the readers.","url":"https:\/\/www.magetop.com\/blog\/author\/aaron-lx\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/How-To-Install-Docker-On-Ubuntu.png?fit=1355%2C753&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/paOdw5-2Eu","jetpack-related-posts":[{"id":10205,"url":"https:\/\/www.magetop.com\/blog\/how-to-build-custom-docker-images\/","url_meta":{"origin":10198,"position":0},"title":"Dockerfile Explained: How to Build Custom Docker Images","author":"Aaron LX","date":"May 11, 2025","format":false,"excerpt":"Dockerfiles are the foundation for creating your own Docker images. Instead of downloading pre-made containers, you can define exactly what you need \u2014 from system packages to application code \u2014 all in a single file. Let's learn how to build custom docker images step by step. What is a Dockerfile?\u2026","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"Dockerfile Explained How to Build Custom Docker Images","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Dockerfile-Explained-How-to-Build-Custom-Docker-Images.png?fit=1200%2C667&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Dockerfile-Explained-How-to-Build-Custom-Docker-Images.png?fit=1200%2C667&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Dockerfile-Explained-How-to-Build-Custom-Docker-Images.png?fit=1200%2C667&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Dockerfile-Explained-How-to-Build-Custom-Docker-Images.png?fit=1200%2C667&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Dockerfile-Explained-How-to-Build-Custom-Docker-Images.png?fit=1200%2C667&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":10475,"url":"https:\/\/www.magetop.com\/blog\/how-to-fix-docker-build-cache-not-updating\/","url_meta":{"origin":10198,"position":1},"title":"How To Fix Docker Build Cache Not Updating","author":"Aaron LX","date":"July 20, 2025","format":false,"excerpt":"Docker\u2019s build cache is powerful for speeding up builds, but sometimes it gets in the way \u2014 especially when your changes don\u2019t seem to apply. In this guide, you\u2019ll learn why the cache might not update and How To Fix Docker Build Cache Not Updating with a clear example. What\u2026","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How To Fix Docker Build Cache Not Updating","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/07\/How-To-Fix-Docker-Build-Cache-Not-Updating.png?fit=1200%2C667&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/07\/How-To-Fix-Docker-Build-Cache-Not-Updating.png?fit=1200%2C667&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/07\/How-To-Fix-Docker-Build-Cache-Not-Updating.png?fit=1200%2C667&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/07\/How-To-Fix-Docker-Build-Cache-Not-Updating.png?fit=1200%2C667&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/07\/How-To-Fix-Docker-Build-Cache-Not-Updating.png?fit=1200%2C667&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":10181,"url":"https:\/\/www.magetop.com\/blog\/getting-started-with-docker-a-beginner-friendly-guide\/","url_meta":{"origin":10198,"position":2},"title":"Getting Started with Docker: A Beginner-Friendly Guide","author":"Aaron LX","date":"May 7, 2025","format":false,"excerpt":"Docker has become a must-have tool for developers, allowing us to run applications consistently across different environments. If you\u2019re new to Docker, don\u2019t worry \u2014 this guide will help you getting started with Docker. What is Docker? Docker is a platform that lets you package your applications and all their\u2026","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"Getting Started with Docker A Beginner-Friendly Guide","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Getting-Started-with-Docker-A-Beginner-Friendly-Guide.png?fit=1200%2C667&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Getting-Started-with-Docker-A-Beginner-Friendly-Guide.png?fit=1200%2C667&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Getting-Started-with-Docker-A-Beginner-Friendly-Guide.png?fit=1200%2C667&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Getting-Started-with-Docker-A-Beginner-Friendly-Guide.png?fit=1200%2C667&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/Getting-Started-with-Docker-A-Beginner-Friendly-Guide.png?fit=1200%2C667&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":10777,"url":"https:\/\/www.magetop.com\/blog\/how-to-install-new-relic-apm-on-ubuntu\/","url_meta":{"origin":10198,"position":3},"title":"How To Install New Relic APM On Ubuntu","author":"Aaron LX","date":"October 16, 2025","format":false,"excerpt":"New Relic APM on Ubuntu helps Magento 2 developers and store owners monitor performance, track slow transactions, and optimize PHP applications in real time. In this guide, you\u2019ll learn how to install New Relic APM on Ubuntu using the official package repository for a clean and reliable setup. Steps To\u2026","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How To Install New Relic APM On Ubuntu","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/10\/How-To-Install-New-Relic-APM-On-Ubuntu.png?fit=1200%2C667&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/10\/How-To-Install-New-Relic-APM-On-Ubuntu.png?fit=1200%2C667&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/10\/How-To-Install-New-Relic-APM-On-Ubuntu.png?fit=1200%2C667&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/10\/How-To-Install-New-Relic-APM-On-Ubuntu.png?fit=1200%2C667&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/10\/How-To-Install-New-Relic-APM-On-Ubuntu.png?fit=1200%2C667&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":10325,"url":"https:\/\/www.magetop.com\/blog\/how-to-fix-timezone-issues-in-docker-containers\/","url_meta":{"origin":10198,"position":4},"title":"How to Fix Timezone Issues in Docker Containers","author":"Aaron LX","date":"May 31, 2025","format":false,"excerpt":"Timezone mismatches in Docker containers can lead to confusing log timestamps, scheduling errors, and inconsistent behavior between environments. In this guide, you'll learn how to fix timezone issues inside your Docker containers. Why Timezone Matters in Containers By default, many Docker base images (especially slim ones) use UTC. If your\u2026","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"How to Fix Timezone Issues in Docker Containers","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/How-to-Fix-Timezone-Issues-in-Docker-Containers.png?fit=1200%2C667&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/How-to-Fix-Timezone-Issues-in-Docker-Containers.png?fit=1200%2C667&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/How-to-Fix-Timezone-Issues-in-Docker-Containers.png?fit=1200%2C667&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/How-to-Fix-Timezone-Issues-in-Docker-Containers.png?fit=1200%2C667&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/05\/How-to-Fix-Timezone-Issues-in-Docker-Containers.png?fit=1200%2C667&ssl=1&resize=1050%2C600 3x"},"classes":[]},{"id":10049,"url":"https:\/\/www.magetop.com\/blog\/how-to-install-mariadb-on-ubuntu\/","url_meta":{"origin":10198,"position":5},"title":"How To Install MariaDB On Ubuntu","author":"Aaron LX","date":"April 3, 2025","format":false,"excerpt":"MariaDB is a popular, open-source relational database management system that is a fork of MySQL. It is highly performant, secure, and compatible with most MySQL tools. In this guide, we will walk you through How To Install MariaDB On Ubuntu step by step. Steps To Install MariaDB On Ubuntu 1.\u2026","rel":"","context":"In &quot;Magento 2 Tutorials&quot;","block_context":{"text":"Magento 2 Tutorials","link":"https:\/\/www.magetop.com\/blog\/magento-2-tutorials\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/04\/How-To-Install-MariaDB-On-Ubuntu.png?fit=1200%2C667&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/04\/How-To-Install-MariaDB-On-Ubuntu.png?fit=1200%2C667&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/04\/How-To-Install-MariaDB-On-Ubuntu.png?fit=1200%2C667&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/04\/How-To-Install-MariaDB-On-Ubuntu.png?fit=1200%2C667&ssl=1&resize=700%2C400 2x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2025\/04\/How-To-Install-MariaDB-On-Ubuntu.png?fit=1200%2C667&ssl=1&resize=1050%2C600 3x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/10198","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/users\/106"}],"replies":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/comments?post=10198"}],"version-history":[{"count":2,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/10198\/revisions"}],"predecessor-version":[{"id":10203,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/10198\/revisions\/10203"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media\/10204"}],"wp:attachment":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media?parent=10198"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/categories?post=10198"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/tags?post=10198"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}