{"id":2543,"date":"2020-01-01T18:56:13","date_gmt":"2020-01-01T09:56:13","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=2543"},"modified":"2023-06-17T07:25:40","modified_gmt":"2023-06-16T22:25:40","slug":"ubuntu-18-04-lts-desktop%e3%81%a7docker-ce%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%99%e3%82%8b%ef%bc%81","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/2543","title":{"rendered":"Docker CE\u3092Ubuntu Desktop 18.04\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\uff01"},"content":{"rendered":"<p>Ubuntu 18.04 LTS Desktop\u306b\u3001Docker CE\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>\u4f7f\u7528\u74b0\u5883<\/h2>\n<ul>\n<li>Ubuntu 18.04.3 Desktop<\/li>\n<\/ul>\n<h2>\u65e7\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>Docker CE\u3088\u308a\u524d\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306eDocker\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo apt-get remove docker docker-engine docker.io containerd runc\r\n<\/pre>\n<h2>\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u6e96\u5099<\/h2>\n<p>Docker CE\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2]; title: ; notranslate\" title=\"\">\r\n$ sudo apt-get update\r\n$ sudo apt-get install \\\r\n    apt-transport-https \\\r\n    ca-certificates \\\r\n    curl \\\r\n    gnupg-agent \\\r\n    software-properties-common\r\n<\/pre>\n<p>Docker\u306e\u516c\u5f0f\u306eGPG\u30ad\u30fc\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ curl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo apt-key add -\r\nOK\r\n<\/pre>\n<p>\u8ffd\u52a0\u3057\u305fGPG\u30ad\u30fc\u3092\u691c\u8a3c\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo apt-key fingerprint 0EBFCD88\r\npub   rsa4096 2017-02-22 &#x5B;SCEA]\r\n      9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88\r\nuid           &#x5B; unknown] Docker Release (CE deb) &lt;docker@docker.com&gt;\r\nsub   rsa4096 2017-02-22 &#x5B;S]\r\n<\/pre>\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo add-apt-repository \\\r\n   &quot;deb &#x5B;arch=amd64] https:\/\/download.docker.com\/linux\/ubuntu \\\r\n   $(lsb_release -cs) \\\r\n   stable&quot;\r\n<\/pre>\n<h2>\u6700\u65b0\u7248\u306eDocker CE\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u6700\u65b0\u7248\u306eDocker CE\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002\u203b\u7279\u5b9a\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6307\u5b9a\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,2]; title: ; notranslate\" title=\"\">\r\n$ sudo apt-get update\r\n$ sudo apt-get install docker-ce docker-ce-cli containerd.io\r\n<\/pre>\n<h2>Docker CE\u306e\u52d5\u4f5c\u78ba\u8a8d<\/h2>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u3001Docker CE\u306e\u52d5\u4f5c\u78ba\u8a8d\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo docker run hello-world\r\nUnable to find image 'hello-world:latest' locally\r\nlatest: Pulling from library\/hello-world\r\n1b930d010525: Pull complete \r\nDigest: sha256:4fe721ccc2e8dc7362278a29dc660d833570ec2682f4e4194f4ee23e415e1064\r\nStatus: Downloaded newer image for hello-world:latest\r\n\r\nHello from Docker!\r\nThis message shows that your installation appears to be working correctly.\r\n\r\nTo generate this message, Docker took the following steps:\r\n 1. The Docker client contacted the Docker daemon.\r\n 2. The Docker daemon pulled the &quot;hello-world&quot; image from the Docker Hub.\r\n    (amd64)\r\n 3. The Docker daemon created a new container from that image which runs the\r\n    executable that produces the output you are currently reading.\r\n 4. The Docker daemon streamed that output to the Docker client, which sent it\r\n    to your terminal.\r\n\r\nTo try something more ambitious, you can run an Ubuntu container with:\r\n $ docker run -it ubuntu bash\r\n\r\nShare images, automate workflows, and more with a free Docker ID:\r\n https:\/\/hub.docker.com\/\r\n\r\nFor more examples and ideas, visit:\r\n https:\/\/docs.docker.com\/get-started\/\r\n\r\n<\/pre>\n<h2>Docker CE\u306e\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5<\/h2>\n<p>Docker CE\u3092\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo apt-get purge docker-ce\r\n<\/pre>\n<p>Docker\u306e\u30a4\u30e1\u30fc\u30b8\u3001\u30b3\u30f3\u30c6\u30ca\u3001\u30dc\u30ea\u30e5\u30fc\u30e0\u3082\u524a\u9664\u3059\u308b\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo rm -rf \/var\/lib\/docker\r\n<\/pre>\n<h2>Docker\u3092sudo\u306a\u3057\u3067\u5b9f\u884c\u53ef\u80fd\u306b\u3059\u308b\uff01<\/h2>\n<p>Docker\u3092sudo\u306a\u3057\u3067\u5b9f\u884c\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002docker\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u5b9f\u969b\u306b\u8a66\u3059\u3068\u3001\u4f5c\u6210\u6e08\u307f\u306e\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo groupadd docker\r\ngroupadd: group 'docker' already exists\r\n<\/pre>\n<p>Docker\u3092\u5b9f\u884c\u3059\u308b\u30e6\u30fc\u30b6\u3092docker\u30b0\u30eb\u30fc\u30d7\u306b\u767b\u9332\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo usermod -aG docker $USER\r\n<\/pre>\n<p>\u30b0\u30eb\u30fc\u30d7\u3078\u306e\u30e6\u30fc\u30b6\u306e\u767b\u9332\u3092\u5373\u6642\u306b\u6709\u52b9\u5316\u3057\u307e\u3059\u3002\u203b\u30ed\u30b0\u30a4\u30f3\u3001\u30ed\u30b0\u30aa\u30d5\u3084\u30de\u30b7\u30f3\u306e\u518d\u8d77\u52d5\u3067\u3082\u69cb\u3044\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ newgrp docker\r\n<\/pre>\n<p>sudo\u306a\u3057\u3067\u3001docker\u304c\u5b9f\u884c\u53ef\u80fd\u3067\u3042\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ docker run hello-world\r\n<\/pre>\n<h2>Docker CE\u3092\u30de\u30b7\u30f3\u8d77\u52d5\u6642\u306b\u8d77\u52d5\u3059\u308b\uff01<\/h2>\n<p>Docker CE\u3092\u30de\u30b7\u30f3\u8d77\u52d5\u6642\u306b\u81ea\u52d5\u3067\u8d77\u52d5\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ sudo systemctl enable docker\r\nSynchronizing state of docker.service with SysV service script with \/lib\/systemd\/systemd-sysv-install.\r\nExecuting: \/lib\/systemd\/systemd-sysv-install enable docker\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>Ubuntu 18.04 LTS Desktop\u306b\u3001Docker CE\u306e\u6700\u65b0\u7248\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>\u53c2\u8003\u60c5\u5831<\/h2>\n<ul>\n<li><a href=\"https:\/\/docs.docker.com\/install\/linux\/docker-ce\/ubuntu\/\" target=\"_blank\" rel=\"noopener noreferrer\">Get Docker CE for Ubuntu<\/a><\/li>\n<li><a href=\"https:\/\/docs.docker.com\/\" target=\"_blank\" rel=\"noopener\">Docker Docs<\/a><\/li>\n<li><a href=\"https:\/\/hub.docker.com\/\" target=\"_blank\" rel=\"noopener\">Docker Hub<\/a><\/li>\n<li><a href=\"https:\/\/github.com\/docker\" target=\"_blank\" rel=\"noopener\">GitHub - Docker<\/a><\/li>\n<\/ul>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/6869\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Docker\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2020\/01\/eyecatch_docker_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Docker\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">Docker\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<h2>\u95a2\u9023\u66f8\u7c4d\uff08Amazon\uff09<\/h2>\n<p><iframe sandbox=\"allow-popups allow-scripts allow-modals allow-forms allow-same-origin\" style=\"width:120px;height:240px;\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&bc1=000000&IS2=1&bg1=FFFFFF&fc1=000000&lc1=0000FF&t=infotecr-22&language=ja_JP&o=9&p=8&l=as4&m=amazon&f=ifr&ref=as_ss_li_til&asins=B089VZXX63&linkId=d160f88ef500999a2e19dff01ff35ffd\"><\/iframe><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu 18.04 LTS Desktop\u306b\u3001Docker CE\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":6879,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[159],"tags":[499,51,274,361,52],"class_list":["post-2543","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker","tag-docker","tag-ubuntu","tag-ubuntu-desktop","tag-ubuntu-desktop-18-04","tag-52"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/2543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=2543"}],"version-history":[{"count":1,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/2543\/revisions"}],"predecessor-version":[{"id":12387,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/2543\/revisions\/12387"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/6879"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=2543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=2543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=2543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}