{"id":785,"date":"2023-08-13T13:04:03","date_gmt":"2023-08-13T07:34:03","guid":{"rendered":"https:\/\/www.openwriteup.com\/?page_id=785"},"modified":"2024-04-30T17:14:09","modified_gmt":"2024-04-30T11:44:09","slug":"docker-lab-setup-on-ubuntu-22-04-server-lts","status":"publish","type":"page","link":"https:\/\/www.openwriteup.com\/?page_id=785","title":{"rendered":"Docker lab setup on Ubuntu 22.04 Server LTS"},"content":{"rendered":"<p><span style=\"text-decoration: underline;\"><strong>Lab1 Setting up docker on Centos8<\/strong><\/span><\/p>\n<pre>yum remove podman*\r\n\r\nyum remove runc* containerd* buildah*\r\n\r\nsudo yum install -y yum-utils\r\n\r\nsudo yum-config-manager --add-repo https:\/\/download.docker.com\/linux\/centos\/docker-ce.repo\r\n\r\nsudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin\r\n\r\nsystemctl enable docker\r\n\r\nsystemctl start docker\r\n\r\nsystemctl status docker<\/pre>\n<p><strong>Lab2: Setup on ubuntu<\/strong><\/p>\n<p>First, update your existing list of packages<\/p>\n<pre>sudo <span class=\"token function\" style=\"font-family: 'Courier 10 Pitch', Courier, monospace; font-size: 0.9375rem;\">apt<\/span><span style=\"background-color: #eeeeee; font-family: 'Courier 10 Pitch', Courier, monospace; font-size: 0.9375rem;\"> update<\/span><\/pre>\n<p>Install a few prerequisite packages which let <code>apt<\/code>\u00a0use packages over HTTPS:<\/p>\n<pre><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> apt-transport-https ca-certificates <span class=\"token function\">curl<\/span> software-properties-common<\/pre>\n<p>Add the GPG key for the official Docker repository to your system<\/p>\n<pre>curl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo gpg --dearmor -o \/usr\/share\/keyrings\/docker-archive-keyring.gpg<\/pre>\n<p>Add the Docker repository to APT sources:<\/p>\n<pre>echo \"deb [arch=$(dpkg --print-architecture) signed-by=\/usr\/share\/keyrings\/docker-archive-keyring.gpg] https:\/\/download.docker.com\/linux\/ubuntu $(lsb_release -cs) stable\" | sudo tee \/etc\/apt\/sources.list.d\/docker.list &gt; \/dev\/null<\/pre>\n<p>Update your existing list of packages<\/p>\n<pre>sudo apt update<\/pre>\n<p>Install Docker:<\/p>\n<pre>sudo apt install docker-ce docker-ce-cli containerd.io<\/pre>\n<p>Check that it\u2019s running:<\/p>\n<pre><span class=\"token function\">sudo<\/span> systemctl status <span class=\"token function\">docker<\/span><\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lab1 Setting up docker on Centos8 yum remove podman* yum remove runc* containerd* buildah* sudo yum install -y yum-utils sudo yum-config-manager &#8211;add-repo https:\/\/download.docker.com\/linux\/centos\/docker-ce.repo sudo yum install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin systemctl enable docker systemctl start docker systemctl status docker Lab2: Setup on ubuntu First, update your existing list of packages sudo apt update Install [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_oct_exclude_from_cache":false,"footnotes":""},"class_list":["post-785","page","type-page","status-publish","hentry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.openwriteup.com\/index.php?rest_route=\/wp\/v2\/pages\/785","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.openwriteup.com\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.openwriteup.com\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.openwriteup.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.openwriteup.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=785"}],"version-history":[{"count":6,"href":"https:\/\/www.openwriteup.com\/index.php?rest_route=\/wp\/v2\/pages\/785\/revisions"}],"predecessor-version":[{"id":1438,"href":"https:\/\/www.openwriteup.com\/index.php?rest_route=\/wp\/v2\/pages\/785\/revisions\/1438"}],"wp:attachment":[{"href":"https:\/\/www.openwriteup.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}