{"id":100,"date":"2021-05-17T23:39:32","date_gmt":"2021-05-17T23:39:32","guid":{"rendered":"https:\/\/stupidtechblog.com\/?p=100"},"modified":"2021-05-17T23:47:07","modified_gmt":"2021-05-17T23:47:07","slug":"installing-docker-on-centos-8-stream","status":"publish","type":"post","link":"https:\/\/stupidtechblog.com\/?p=100","title":{"rendered":"Installing Docker on CentOS 8 Stream"},"content":{"rendered":"\n<p>Getting docker set up on CentOS 8 can be a little intimidating, but it doesn&#8217;t need to be. Follow this guide and you&#8217;ll be able to use it in no time.<\/p>\n\n\n\n<p><strong>Note: This guide assumes that you have a fresh install of CentOS 8 Stream. It may not work if you&#8217;ve made modifications.<\/strong><\/p>\n\n\n\n<p>First, add the Docker Stable repository to yum.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo yum install -y yum-utils\nsudo yum-config-manager --add-repo https:\/\/download.docker.com\/linux\/centos\/docker-ce.repo<\/pre>\n\n\n\n<p>Now you can install docker!<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"># Either the latest version with this command\nsudo yum install docker-ce docker-ce-cli containerd.io --allowerasing\n\n# Or a specific version with this\nyum list docker-ce --showduplicates | sort -r\n\n# docker-ce.x86_64                3:20.10.6-3.el8                 docker-ce-stable\n# docker-ce.x86_64                3:20.10.5-3.el8                 docker-ce-stable\n# docker-ce.x86_64                3:20.10.4-3.el8                 docker-ce-stable\n# docker-ce.x86_64                3:20.10.3-3.el8                 docker-ce-stable\n# docker-ce.x86_64                3:20.10.2-3.el8                 docker-ce-stable\n# docker-ce.x86_64                3:20.10.1-3.el8                 docker-ce-stable\n# docker-ce.x86_64                3:20.10.0-3.el8                 docker-ce-stable\n# docker-ce.x86_64                3:19.03.15-3.el8                docker-ce-stable\n# docker-ce.x86_64                3:19.03.14-3.el8                docker-ce-stable\n# docker-ce.x86_64                3:19.03.13-3.el8                docker-ce-stable\n\n# sudo yum install docker-ce-&lt;VERSION_STRING> docker-ce-cli-&lt;VERSION_STRING> containerd.io --allowerasing\nsudo yum install docker-ce-20.10.6 docker-ce-cli-20.10.6 containerd.io --allowerasing<\/pre>\n\n\n\n<p><strong>Note: The &#8211;allowerasing flag for the yum commands above is critical, and you&#8217;ll encounter package conflict errors otherwise.<\/strong><\/p>\n\n\n\n<p>Next, just start and enable the docker service<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo systemctl start docker\nsudo systemctl enable docker<\/pre>\n\n\n\n<p>You can test your docker installation with this<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">sudo docker run hello-world<\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Getting docker set up on CentOS 8 can be a little intimidating, but it doesn&#8217;t need to be. Follow this guide and you&#8217;ll be able to use it in no time.<\/p>\n","protected":false},"author":1,"featured_media":103,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[6],"tags":[25,13],"class_list":["post-100","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","tag-centos","tag-linux"],"_links":{"self":[{"href":"https:\/\/stupidtechblog.com\/index.php?rest_route=\/wp\/v2\/posts\/100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stupidtechblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stupidtechblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stupidtechblog.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stupidtechblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=100"}],"version-history":[{"count":5,"href":"https:\/\/stupidtechblog.com\/index.php?rest_route=\/wp\/v2\/posts\/100\/revisions"}],"predecessor-version":[{"id":106,"href":"https:\/\/stupidtechblog.com\/index.php?rest_route=\/wp\/v2\/posts\/100\/revisions\/106"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/stupidtechblog.com\/index.php?rest_route=\/wp\/v2\/media\/103"}],"wp:attachment":[{"href":"https:\/\/stupidtechblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stupidtechblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stupidtechblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}