{"id":122,"date":"2023-01-28T22:40:26","date_gmt":"2023-01-28T13:40:26","guid":{"rendered":"https:\/\/ahnbk.dev\/?p=122"},"modified":"2023-01-28T22:42:03","modified_gmt":"2023-01-28T13:42:03","slug":"docker-%ec%84%a4%ec%b9%98-on-ubuntu","status":"publish","type":"post","link":"https:\/\/ahnbk.dev\/?p=122","title":{"rendered":"Docker \uc124\uce58 on Ubuntu"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Ubuntu\uc5d0\uc11c Docker \uc124\uce58 \ubc29\ubc95 \uc815\ub9ac. \uae30\ubcf8\uc801\uc73c\ub85c Ubuntu Community\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 docker.io\uac00 \uc874\uc7ac\ud558\ub098, Docker.ce\ub97c \uc124\uce58\ud558\ub294 \uac83\uc744 \ubaa8\ub450 \uad8c\uc7a5\ud558\ub294 \ub4ef. Docker\ub294 64bit \uc6b4\uc601\uccb4\uacc4\ub9cc \uc9c0\uc6d0\ud568.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uba3c\uc800 \uae30\uc874 \uc124\uce58\ub41c docker \uad00\ub828 \ud328\ud0a4\uc9c0\ub4e4\uc744 \ubaa8\ub450 \uc81c\uac70.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt-get remove docker docker-engine docker.io containerd runc<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\ub610\ud55c \/var\/lib\/docker \uc548\uc5d0, \uae30\uc874\uc5d0 \uc124\uce58\ud588\ub358 \uc774\ubbf8\uc9c0, \ucee8\ud14c\uc774\ub108 \ub4f1\ub4f1\uc758 \ud30c\uc77c\uc774 \uc874\uc7ac\ud558\ubbc0\ub85c, \ud544\uc694\uac00 \uc5c6\ub2e4\uba74 \uc774\uac83\ub3c4 \uc0ad\uc81c\ud558\ub294 \uac83\uc744 \uad8c\uc7a5\ud568.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ub2e4\uc74c\uc73c\ub85c, \uc124\uce58\uc5d0 \ud544\uc694\ud55c \ud328\ud0a4\uc9c0 \uc124\uce58<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt-get install ca-certificates curl gnupg lsb-release<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Docker Repository GPG Key \ub4f1\ub85d<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ curl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo gpg --dearmor -o \/usr\/share\/keyrings\/docker-archive-keyring.gpg<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Docker Repository\ub97c apt \uc18c\uc2a4 \ub9ac\uc2a4\ud2b8\uc5d0 \ub4f1\ub85d.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ 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<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc124\uce58 \uc2dc\uc791<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo apt-get update\n$ sudo apt-get install docker-ce docker-ce-cli containerd.io<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc124\uce58\ud55c \uc774\ud6c4 \ub3d9\uc791 \ud14c\uc2a4\ud2b8.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo docker run hello-world\n\nUnable to find image 'hello-world:latest' locally\nlatest: Pulling from library\/hello-world\n2db29710123e: Pull complete \nDigest: sha256:aa0cc8055b82dc2509bed2e19b275c8f463506616377219d9642221ab53cf9fe\nStatus: Downloaded newer image for hello-world:latest\n\nHello from Docker!\nThis message shows that your installation appears to be working correctly.\n\nTo generate this message, Docker took the following steps:\n 1. The Docker client contacted the Docker daemon.\n 2. The Docker daemon pulled the \"hello-world\" image from the Docker Hub.\n    (amd64)\n 3. The Docker daemon created a new container from that image which runs the\n    executable that produces the output you are currently reading.\n 4. The Docker daemon streamed that output to the Docker client, which sent it\n    to your terminal.\n\nTo try something more ambitious, you can run an Ubuntu container with:\n $ docker run -it ubuntu bash\n\nShare images, automate workflows, and more with a free Docker ID:\n https:\/\/hub.docker.com\/\n\nFor more examples and ideas, visit:\n https:\/\/docs.docker.com\/get-started\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc2e4\ud589 \uc2dc sudo\ub97c \uc0ac\uc6a9\ud558\uc9c0 \uc54a\uace0 \uc774\uc6a9\ud558\ub824\uba74, \uc0ac\uc6a9\uc790 \uacc4\uc815\uc744 docker \uadf8\ub8f9\uc5d0 \ucd94\uac00\ud558\uba74 \ub428.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"bash\" class=\"language-bash\">$ sudo groupadd docker\n$ sudo usermod -aG docker $USER<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uc7ac\ubd80\ud305 \ud6c4 \uc0ac\uc6a9 \uac00\ub2a5.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu\uc5d0\uc11c Docker \uc124\uce58 \ubc29\ubc95 \uc815\ub9ac. \uae30\ubcf8\uc801\uc73c\ub85c Ubuntu Community\uc5d0\uc11c \uc81c\uacf5\ud558\ub294 docker.io\uac00 \uc874\uc7ac\ud558\ub098, Docker.ce\ub97c \uc124\uce58\ud558\ub294 \uac83\uc744 \ubaa8\ub450 \uad8c\uc7a5\ud558\ub294 \ub4ef. Docker\ub294 64bit \uc6b4\uc601\uccb4\uacc4\ub9cc \uc9c0\uc6d0\ud568. \uba3c\uc800 \uae30\uc874 \uc124\uce58\ub41c docker \uad00\ub828 \ud328\ud0a4\uc9c0\ub4e4\uc744 \ubaa8\ub450 \uc81c\uac70. \ub610\ud55c \/var\/lib\/docker \uc548\uc5d0, \uae30\uc874\uc5d0 \uc124\uce58\ud588\ub358 \uc774\ubbf8\uc9c0, \ucee8\ud14c\uc774\ub108 \ub4f1\ub4f1\uc758 \ud30c\uc77c\uc774 \uc874\uc7ac\ud558\ubbc0\ub85c, \ud544\uc694\uac00 \uc5c6\ub2e4\uba74 \uc774\uac83\ub3c4 \uc0ad\uc81c\ud558\ub294 \uac83\uc744 \uad8c\uc7a5\ud568. \ub2e4\uc74c\uc73c\ub85c, \uc124\uce58\uc5d0 \ud544\uc694\ud55c \ud328\ud0a4\uc9c0 \uc124\uce58 Docker Repository GPG Key \ub4f1\ub85d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[26,27,9],"class_list":["post-122","post","type-post","status-publish","format-standard","hentry","category-docker","tag-docker","tag-docker-ce","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/posts\/122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=122"}],"version-history":[{"count":2,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/posts\/122\/revisions"}],"predecessor-version":[{"id":124,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=\/wp\/v2\/posts\/122\/revisions\/124"}],"wp:attachment":[{"href":"https:\/\/ahnbk.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ahnbk.dev\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}