{"id":7246,"date":"2022-12-28T06:43:31","date_gmt":"2022-12-27T21:43:31","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=7246"},"modified":"2022-12-30T07:48:25","modified_gmt":"2022-12-29T22:48:25","slug":"docker-hub%e3%81%aehello-world%e3%82%b3%e3%83%b3%e3%83%86%e3%83%8a%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6docker%e3%82%92%e5%9f%ba%e6%9c%ac%e6%93%8d%e4%bd%9c%e3%82%92%e4%b8%80%e8%a6%a7%e5%8c%96","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/7246","title":{"rendered":"Docker Hub\u306ehello-world\u30b3\u30f3\u30c6\u30ca\u3092\u4f7f\u7528\u3057\u3066Docker\u306e\u52d5\u4f5c\u78ba\u8a8d\u3092\u884c\u3046\uff01"},"content":{"rendered":"<p>Docker\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u52d5\u4f5c\u78ba\u8a8d\u3092\u884c\u3046\u3068\u601d\u3044\u307e\u3059\u3002\u305d\u306e\u969b\u306b\u306f\u3001Docker Hub\u306ehello-world\u30b3\u30f3\u30c6\u30ca\u3092\u4f7f\u7528\u3059\u308b\u3068\u7c21\u5358\u306b\u52d5\u4f5c\u78ba\u8a8d\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>Docker Hub\u306ehello-world\u306e\u30b3\u30f3\u30c6\u30ca\u306e\u4f7f\u7528\u65b9\u6cd5\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>Docker Hub\u306eNginx\u306e\u30da\u30fc\u30b8\u3067\u30b3\u30f3\u30c6\u30ca\u306e\u4f7f\u7528\u65b9\u6cd5\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/hub.docker.com\/_\/hello-world\" target=\"_blank\" rel=\"noopener\">Docker Hub - hello-world<\/a><\/li>\n<\/ul>\n<h2>Docker Hub\u304b\u3089hello-world\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u5b9f\u884c\u3059\u308b\uff01<\/h2>\n<p>\u300cdocker run\u300d\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001hello-world\u306e\u30a4\u30e1\u30fc\u30b8\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u304b\u3089\u5b9f\u884c\u307e\u3067\u3092\u4e00\u6c17\u306b\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b3\u30f3\u30c6\u30ca\u540d\u3092\u300chello-world\u300d\u3068\u3057\u307e\u3057\u305f\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ docker container run --name hello-world hello-world\r\nUnable to find image 'hello-world:latest' locally\r\nlatest: Pulling from library\/hello-world\r\n2db29710123e: Pull complete \r\nDigest: sha256:c77be1d3a47d0caf71a82dd893ee61ce01f32fc758031a6ec4cf1389248bb833\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<\/pre>\n<h2>hello-world\u306e\u30a4\u30e1\u30fc\u30b8\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u305f\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>\u300cdocker image ls\u300d\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001hello-world\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ docker image ls\r\nREPOSITORY    TAG       IMAGE ID       CREATED         SIZE\r\nhello-world   latest    feb5d9fea6a5   15 months ago   13.3kB\r\n<\/pre>\n<h2>hello-world\u306e\u30b3\u30f3\u30c6\u30ca\u304c\u5b58\u5728\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>\u300cdocker container ps -a\u300d\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001hello-world\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ docker container ps -a\r\nCONTAINER ID   IMAGE         COMMAND    CREATED         STATUS                     PORTS     NAMES\r\n369857ae4f67   hello-world   &quot;\/hello&quot;   About a minute ago   Exited (0) About a minute ago             hello-world\r\n<\/pre>\n<h2>hello-world\u306e\u30b3\u30f3\u30c6\u30ca\u304c\u52d5\u4f5c\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>\u300cdocker start\u300d\u30b3\u30de\u30f3\u30c9\u3067\u7e70\u308a\u8fd4\u3057\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002\u5b9f\u884c\u3059\u308b\u305f\u3073\u306b\u300cdocker logs\u300d\u30b3\u30de\u30f3\u30c9\u3067\u30ed\u30b0\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,3]; title: ; notranslate\" title=\"\">\r\n$ docker start hello-world\r\nhello-world\r\n$ docker logs hello-world \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<\/pre>\n<h2>hello-world\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u524a\u9664\u3059\u308b\uff01<\/h2>\n<p>\u300cdocker container rm\u300d\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001hello-world\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,3]; title: ; notranslate\" title=\"\">\r\n$ docker container rm hello-world\r\nhello-world\r\n$ docker ps -a\r\nCONTAINER ID   IMAGE                    COMMAND     CREATED          STATUS          PORTS                                                                                  NAMES\r\n<\/pre>\n<h2>hello-world\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u524a\u9664\u3059\u308b\uff01<\/h2>\n<p>\u300cdocker image rm\u300d\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001hello-world\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u524a\u9664\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1,4,9]; title: ; notranslate\" title=\"\">\r\n$ docker image ls\r\nREPOSITORY    TAG       IMAGE ID       CREATED         SIZE\r\nhello-world   latest    feb5d9fea6a5   15 months ago   13.3kB\r\n$ docker image rm hello-world\r\nUntagged: hello-world:latest\r\nUntagged: hello-world@sha256:c77be1d3a47d0caf71a82dd893ee61ce01f32fc758031a6ec4cf1389248bb833\r\nDeleted: sha256:feb5d9fea6a5e9606aa995e879d862b825965ba48de054caab5ef356dc6b3412\r\nDeleted: sha256:e07ee1baac5fae6a26f30cabfe54a36d3402f96afda318fe0a96cec4ca393359\r\n$ docker image ls\r\nREPOSITORY   TAG       IMAGE ID   CREATED   SIZE\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>Docker Hub\u306b\u767b\u9332\u3055\u308c\u305fhello-world\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u81ea\u5206\u3067\u30c6\u30b9\u30c8\u7528\u306e\u30b3\u30f3\u30c6\u30ca\u3092\u7528\u610f\u3057\u306a\u304f\u3066\u3082\u3001\u7c21\u5358\u306bDocker\u306e\u52d5\u4f5c\u78ba\u8a8d\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u53c2\u8003\u60c5\u5831<\/h2>\n<ul>\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 style=\"width: 120px; height: 240px;\" sandbox=\"allow-popups allow-scripts allow-modals allow-forms allow-same-origin\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\" src=\"\/\/rcm-fe.amazon-adsystem.com\/e\/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=infotecr-22&amp;language=ja_JP&amp;o=9&amp;p=8&amp;l=as4&amp;m=amazon&amp;f=ifr&amp;ref=as_ss_li_til&amp;asins=B089VZXX63&amp;linkId=d160f88ef500999a2e19dff01ff35ffd\"><\/iframe><\/p>\n<hr \/>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Docker\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u52d5\u4f5c\u78ba\u8a8d\u3092\u884c\u3046\u3068\u601d\u3044\u307e\u3059\u3002\u305d\u306e\u969b\u306b\u306f\u3001Docker Hub\u306ehello-world\u30b3\u30f3\u30c6\u30ca\u3092\u4f7f\u7528\u3059\u308b\u3068\u7c21\u5358\u306b\u52d5\u4f5c\u78ba\u8a8d\u3092\u884c\u3046\u3053\u3068\u304c\u3067\u304d\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":[],"class_list":["post-7246","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/7246","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=7246"}],"version-history":[{"count":0,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/7246\/revisions"}],"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=7246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=7246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=7246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}