{"id":2961,"date":"2018-07-17T02:10:02","date_gmt":"2018-07-16T17:10:02","guid":{"rendered":"https:\/\/tech.akat.info\/?p=2961"},"modified":"2018-07-17T02:16:51","modified_gmt":"2018-07-16T17:16:51","slug":"docker%e5%85%a5%e9%96%80","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=2961","title":{"rendered":"Docker\u5165\u9580"},"content":{"rendered":"<p>\u4eca\u66f4\u3067\u3059\u304c\u3001\u3001Docker\u306e\u57fa\u672c\u7684\u306a\u3053\u3068\u3092\u307e\u3068\u3081\u308b\u3002<\/p>\n<h1>Docker\u3068\u306f<\/h1>\n<h2>Docker\u304c\u5fc5\u8981\u3068\u306a\u3063\u305f\u80cc\u666f<\/h2>\n<p>\u30fb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u4f5c\u3063\u305f\u3089\u7d42\u308f\u308a\u3067\u306f\u306a\u304f\u3001\u30e6\u30fc\u30b6\u306e\u8981\u671b\u3092\u53d6\u308a\u8fbc\u307f\u4fa1\u5024\u306e\u3042\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u6539\u5584\u3057\u3066\u3044\u304f\u5fc5\u8981\u304c\u3042\u308b<br \/>\n\u30fb\u30e6\u30fc\u30b6\u8981\u671b\u304c\u591a\u69d8\u5316\u3057\u3001\u5909\u5316\u306e\u30b9\u30d4\u30fc\u30c9\u3082\u65e9\u304f\u306a\u3063\u3066\u3044\u308b\u305f\u3081\u3001\u8fc5\u901f\u304b\u3064\u67d4\u8edf\u306aIT\u57fa\u76e4\u304c\u6c42\u3081\u3089\u308c\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u304d\u305f<br \/>\n\u30fb\u7d99\u7d9a\u7684\u30a4\u30f3\u30c6\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u6642\u306e\u4eee\u60f3\u30de\u30b7\u30f3\u3067\u306e\u554f\u984c\u3092\u3001Docker\u306f\u89e3\u6c7a\u3067\u304d\u308b<\/p>\n<h2>\u7279\u5fb4<\/h2>\n<p>\u30fb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u5b9f\u884c\u74b0\u5883\u3092\u30b3\u30fc\u30c9\u7ba1\u7406\u3067\u304d\u308b<br \/>\n\u3000\u30fb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a\u8005\u3082\u74b0\u5883\u3092\u3059\u3050\u306b\u7528\u610f\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b<br \/>\n\u3000\u3000(\u30b5\u30fc\u30d0\u7ba1\u7406\u8005\u306b\u30b5\u30fc\u30d0\u69cb\u7bc9\u3057\u3066\u3082\u3089\u3046\u5fc5\u8981\u304c\u306a\u304f\u306a\u308b)<br \/>\n\u3000\u30fb\u672c\u756a\u74b0\u5883\u306b\u8ffd\u52a0\u3057\u305f\u8a2d\u5b9a\u304c\u30c6\u30b9\u30c8\u74b0\u5883\u306b\u306f\u8ffd\u52a0\u3055\u308c\u3066\u3044\u306a\u3044\u3001\u3092\u56de\u907f\u3057\u3084\u3059\u304f\u306a\u308b<br \/>\n\u30fb\u30d9\u30fc\u30b9OS\u306e\u30ab\u30fc\u30cd\u30eb\u3084\u6a5f\u80fd\u3092\u5229\u7528\u3059\u308b\u305f\u3081\u3001\u4eee\u60f3\u30de\u30b7\u30f3\u3068\u6bd4\u8f03\u3057\u3066\u30aa\u30fc\u30d0\u30fc\u30d8\u30c3\u30c9\u304c\u5c11\u306a\u304f\u306a\u308a\u3001\u30ea\u30bd\u30fc\u30b9\u6d88\u8cbb\u91cf(\u30e1\u30e2\u30ea\u3084\u30c7\u30a3\u30b9\u30af\u5bb9\u91cf)\u304c\u5c11\u306a\u304f\u306a\u308b<br \/>\n\u3000\u30fb\u4f5c\u696d\u304c\u52b9\u7387\u5316\u3055\u308c\u308b(\u69cb\u7bc9\u6642\u9593\u304c\u3068\u3066\u3082\u65e9\u304f\u306a\u308b)<br \/>\n\u3000\u30fb\u4eee\u60f3\u30de\u30b7\u30f3\u3068\u306f\u9055\u3063\u3066\u3001\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u3084\u30ab\u30fc\u30cd\u30eb\u306b\u5f71\u97ff\u3059\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u5229\u7528\u3067\u304d\u306a\u3044\u5834\u5408\u304c\u3042\u308b<\/p>\n<h1>\u64cd\u4f5c\u65b9\u6cd5<\/h1>\n<p>Docker for Windows \u3067\u64cd\u4f5c\u3059\u308b\u3002<br \/>\n\u307e\u305a\u306f\u3001<a href=\"https:\/\/tech.akat.info\/?p=2748\">windows10\u3078\u306edocker\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a>\u306b\u3057\u305f\u304c\u3063\u3066\u3001Docker\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3002<\/p>\n<h2>ubuntu\u306bnginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001\u30d6\u30e9\u30a6\u30b6\u3067\u95b2\u89a7\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b<\/h2>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n### Docker\u30ec\u30b8\u30b9\u30c8\u30ea(\u30ea\u30dd\u30b8\u30c8\u30ea)\u304b\u3089\u3001\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u3092\u691c\u7d22\u3059\u308b ###\r\n### \u516c\u5f0f\u3067\u3001ubuntu\u3092\u542b\u3080\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u3092\u691c\u7d22\u3057\u3066\u3044\u308b ###\r\n&gt; docker search --no-trunc --filter is-official=true ubuntu\r\nNAME                 DESCRIPTION                                                                                            STARS               OFFICIAL            AUTOMATED\r\nubuntu               Ubuntu is a Debian-based Linux operating system based on free software.                                7991                &#x5B;OK]\r\nubuntu-upstart       Upstart is an event-based replacement for the \/sbin\/init daemon which starts processes at boot         87                  &#x5B;OK]\r\nneurodebian          NeuroDebian provides neuroscience research software for Debian, Ubuntu, and other derivatives.         50                  &#x5B;OK]\r\nubuntu-debootstrap   debootstrap --variant=minbase --components=main,universe --include=inetutils-ping,iproute2 &lt;suite&gt; \/   39                  &#x5B;OK]\r\n\r\n### \u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b ###\r\n### ubuntu\u306e\u6700\u65b0\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b ###\r\n### \u3082\u3057Docker\u30db\u30b9\u30c8\u306eubuntu\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u53e4\u304f\u3066\u3082\u3001Linux\u30ab\u30fc\u30cd\u30eb\u306f\u5f8c\u65b9\u4e92\u63db\u6027\u304c\u3042\u308b\u305f\u3081\u57fa\u672c\u7684\u306b\u306f\u554f\u984c\u306a\u3044 ###\r\n&gt; docker pull ubuntu\r\nUsing default tag: latest\r\nlatest: Pulling from library\/ubuntu\r\n6b98dfc16071: Pull complete\r\n4001a1209541: Pull complete\r\n6319fc68c576: Pull complete\r\nb24603670dc3: Pull complete\r\n97f170c87c6f: Pull complete\r\nDigest: sha256:5f4bdc3467537cbbe563e80db2c3ec95d548a9145d64453b06939c4592d67b6d\r\nStatus: Downloaded newer image for ubuntu:latest\r\n\r\n### \u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u3092\u8868\u793a\u3059\u308b ###\r\n&gt; docker images\r\nREPOSITORY          TAG                 IMAGE ID            CREATED             SIZE\r\nubuntu              latest              113a43faa138        5 weeks ago         81.2MB\r\n\r\n### Docker\u30b3\u30f3\u30c6\u30ca\u3092\u8d77\u52d5\u3057\u3066\u3001nginx\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b ###\r\n### \u6700\u521d\u306bapt-get update\u3057\u306a\u3044\u3068\u30a8\u30e9\u30fc\u3068\u306a\u308b ###\r\n\r\n### docker run \u30aa\u30d7\u30b7\u30e7\u30f3 ###\r\n### -h hostname \u30db\u30b9\u30c8\u540d\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u203b\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u30b3\u30f3\u30c6\u30caID\u3068\u540c\u3058\u540d\u524d\u3068\u306a\u308b ###\r\n### --cpuset-cpus 0-3 --memory 4096m \u306a\u3069\u3067\u5229\u7528\u3059\u308bCPU\u3084\u30e1\u30e2\u30ea\u6570\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd ###\r\n&gt; docker run -it --name ubuntu-container ubuntu\r\nroot@b6ec500d4fd7:\/# cat \/etc\/lsb-release\r\nDISTRIB_ID=Ubuntu\r\nDISTRIB_RELEASE=18.04\r\nDISTRIB_CODENAME=bionic\r\nDISTRIB_DESCRIPTION=&quot;Ubuntu 18.04 LTS&quot;\r\n\r\nroot@b6ec500d4fd7:\/# apt-get install nginx\r\nReading package lists... Done\r\nBuilding dependency tree\r\nReading state information... Done\r\nE: Unable to locate package nginx\r\n\r\nroot@b6ec500d4fd7:\/# apt-get update &amp;&amp; apt-get upgrade\r\n...\r\n\r\nroot@b6ec500d4fd7:\/# apt-get install nginx\r\n...\r\nroot@b6ec500d4fd7:\/# \/etc\/init.d\/nginx status\r\n * nginx is not running\r\n\r\nroot@b6ec500d4fd7:\/# \/etc\/init.d\/nginx start\r\n * Starting nginx nginx                                                                                                                                                      &#x5B; OK ]\r\n\r\nroot@b6ec500d4fd7:\/# ps afx\r\n   PID TTY      STAT   TIME COMMAND\r\n     1 pts\/0    Ss     0:00 \/bin\/bash\r\n   920 ?        Ss     0:00 nginx: master process \/usr\/sbin\/nginx\r\n   921 ?        S      0:00  \\_ nginx: worker process\r\n   922 ?        S      0:00  \\_ nginx: worker process\r\n   924 pts\/0    R+     0:00 ps afx\r\n\r\nroot@b6ec500d4fd7:\/# exit\r\nexit\r\n\r\n### \u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u6210\u3059\u308b ###\r\n&gt; docker commit ubuntu-container akatuki\/ubuntu-nginx\r\nsha256:507f4bf357e5a0bcb5df74d50e51fea31778fcc6f0f17938baf977aeb6db38d0\r\n\r\n&gt; docker images\r\nREPOSITORY             TAG                 IMAGE ID            CREATED             SIZE\r\nakatuki\/ubuntu-nginx   latest              507f4bf357e5        5 seconds ago       196MB\r\nubuntu                 latest              113a43faa138        5 weeks ago         81.2MB\r\n\r\n### 80\u756a\u30dd\u30fc\u30c8\u3092\u5229\u7528\u3057\u3066\u30b3\u30f3\u30c6\u30ca\u3092\u8d77\u52d5\u3059\u308b ###\r\n&gt; docker run -itd -p 80:80 --name ubuntu-nginx-container akatuki\/ubuntu-nginx\r\n\r\n&gt; docker ps\r\nCONTAINER ID        IMAGE                  COMMAND             CREATED             STATUS              PORTS                NAMES\r\n76c54b34974b        akatuki\/ubuntu-nginx   &quot;\/bin\/bash&quot;         29 seconds ago      Up 27 seconds       0.0.0.0:80-&gt;80\/tcp   ubuntu-nginx-container\r\n\r\n&gt; docker attach ubuntu-nginx-container\r\n\r\nroot@76c54b34974b:\/# \/etc\/init.d\/nginx start\r\n * Starting nginx nginx\r\n\r\n### &#x5B;Ctl]+&#x5B;P]+&#x5B;Q]\u3067\u30b3\u30f3\u30c6\u30ca\u3092\u7d42\u4e86\u305b\u305a\u306b\u3001PowerShell\u306b\u623b\u308b\u3053\u3068\u304c\u53ef\u80fd ###\r\n### exit\u3059\u308b\u3068PID1\u306e \/bin\/bash \u304c\u7d42\u4e86\u3059\u308b\u3001\u3064\u307e\u308a\u30b3\u30f3\u30c6\u30ca\u304c\u7d42\u4e86\u3059\u308b ###\r\nroot@76c54b34974b:\/# read escape sequence\r\n<\/pre>\n<p>localhost\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001nginx\u306e\u30da\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u308b\u3002<br \/>\n<a href=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2018\/07\/2018-07-16_230057.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2018\/07\/2018-07-16_230057-300x89.png\" alt=\"\" width=\"300\" height=\"89\" class=\"alignnone size-medium wp-image-2962\" srcset=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2018\/07\/2018-07-16_230057-300x89.png 300w, https:\/\/tech.akat.info\/wp-content\/uploads\/2018\/07\/2018-07-16_230057-768x229.png 768w, https:\/\/tech.akat.info\/wp-content\/uploads\/2018\/07\/2018-07-16_230057.png 987w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<h2>Dockerfile\u3092\u5229\u7528\u3057\u305f\u5834\u5408<\/h2>\n<pre class=\"brush: plain; title: Dockerfile; notranslate\" title=\"Dockerfile\">\r\n# Dockerfile\r\n\r\nFROM ubuntu\r\nMAINTAINER akatuki\r\n\r\nRUN apt-get update &amp;&amp; apt-get upgrade &amp;&amp; apt-get install nginx\r\nCMD service nginx start &amp;&amp; bash\r\n<\/pre>\n<pre class=\"brush: plain; title: \u69cb\u7bc9\u624b\u9806; notranslate\" title=\"\u69cb\u7bc9\u624b\u9806\">\r\n&gt; docker build -t akatuki\/ubuntu-nginx-2 .\\docker_ubuntu_nginx\\\r\nSending build context to Docker daemon  2.048kB\r\nStep 1\/4 : FROM ubuntu\r\n ---&gt; 113a43faa138\r\nStep 2\/4 : MAINTAINER akatuki\r\n ---&gt; Running in 16fcf202048b\r\nRemoving intermediate container 16fcf202048b\r\n ---&gt; 216a90a83370\r\nStep 3\/4 : RUN apt-get update &amp;&amp; apt-get -y upgrade &amp;&amp; apt-get install -y nginx\r\n ---&gt; Running in 33c5c837b636\r\n...\r\nRemoving intermediate container 33c5c837b636\r\n ---&gt; 3e4fc279fc09\r\nStep 4\/4 : CMD service nginx start &amp;&amp; bash\r\n ---&gt; Running in f71c691629b7\r\nRemoving intermediate container f71c691629b7\r\n ---&gt; 1bae7466b72c\r\nSuccessfully built 1bae7466b72c\r\nSuccessfully tagged akatuki\/ubuntu-nginx-2:latest\r\nSECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.\r\n\r\n&gt; docker images\r\nREPOSITORY               TAG                 IMAGE ID            CREATED              SIZE\r\nakatuki\/ubuntu-nginx-2   latest              1bae7466b72c        About a minute ago   194MB\r\n\r\n&gt; docker run -itd -p 80:80 --name ubuntu-nginx-container-2 akatuki\/ubuntu-nginx-2\r\n\r\n<\/pre>\n<h2>\u305d\u306e\u4ed6\u4fbf\u5229\u306a\u30b3\u30de\u30f3\u30c9<\/h2>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n### docker\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3059\u308b ###\r\n&gt; docker version\r\nClient:\r\n Version:      18.03.1-ce\r\n API version:  1.37\r\n Go version:   go1.9.5\r\n Git commit:   9ee9f40\r\n Built:        Thu Apr 26 07:12:48 2018\r\n OS\/Arch:      windows\/amd64\r\n Experimental: false\r\n Orchestrator: swarm\r\n\r\nServer:\r\n Engine:\r\n  Version:      18.03.1-ce\r\n  API version:  1.37 (minimum version 1.12)\r\n  Go version:   go1.9.5\r\n  Git commit:   9ee9f40\r\n  Built:        Thu Apr 26 07:22:38 2018\r\n  OS\/Arch:      linux\/amd64\r\n  Experimental: true\r\n\r\n### docker\u5b9f\u884c\u74b0\u5883\u3092\u78ba\u8a8d\u3059\u308b ###\r\n&gt; docker info\r\nContainers: 2\r\n Running: 1\r\n Paused: 0\r\n Stopped: 1\r\nImages: 2\r\nServer Version: 18.03.1-ce\r\nStorage Driver: overlay2\r\n Backing Filesystem: extfs\r\n Supports d_type: true\r\n Native Overlay Diff: true\r\nLogging Driver: json-file\r\nCgroup Driver: cgroupfs\r\nPlugins:\r\n Volume: local\r\n Network: bridge host ipvlan macvlan null overlay\r\n Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog\r\nSwarm: inactive\r\nRuntimes: runc\r\nDefault Runtime: runc\r\nInit Binary: docker-init\r\ncontainerd version: 773c489c9c1b21a6d78b5c538cd395416ec50f88\r\nrunc version: 4fc53a81fb7c994640722ac585fa9ca548971871\r\ninit version: 949e6fa\r\nSecurity Options:\r\n seccomp\r\n  Profile: default\r\nKernel Version: 4.9.87-linuxkit-aufs\r\nOperating System: Docker for Windows\r\nOSType: linux\r\nArchitecture: x86_64\r\nCPUs: 2\r\nTotal Memory: 1.934GiB\r\nName: linuxkit-00155d011c1d\r\nID: IHML:MLXN:VWM4:BN3Q:QYWT:QJC4:QVAO:UD5Q:ZS3M:DQC7:2NVH:EP34\r\nDocker Root Dir: \/var\/lib\/docker\r\nDebug Mode (client): false\r\nDebug Mode (server): true\r\n File Descriptors: 27\r\n Goroutines: 48\r\n System Time: 2018-07-16T14:06:28.8408325Z\r\n EventsListeners: 1\r\nRegistry: https:\/\/index.docker.io\/v1\/\r\nLabels:\r\nExperimental: true\r\nInsecure Registries:\r\n 127.0.0.0\/8\r\nLive Restore Enabled: false\r\n\r\n### \u30b3\u30f3\u30c6\u30ca\u306e\u8a73\u7d30\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b ###\r\n&gt; docker inspect ubuntu-nginx-container\r\n&#x5B;\r\n    {\r\n        &quot;Id&quot;: &quot;76c54b34974ba7c0cba4aade1875f280517e27588796b96831290386fc12e813&quot;,\r\n        &quot;Created&quot;: &quot;2018-07-16T13:58:33.5983827Z&quot;,\r\n        &quot;Path&quot;: &quot;\/bin\/bash&quot;,\r\n        &quot;Args&quot;: &#x5B;],\r\n...\r\n\r\n### \u30b3\u30f3\u30c6\u30ca\u5185\u3067\u5909\u66f4\u304c\u3042\u3063\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u30d5\u30a1\u30a4\u30eb\u3092\u8868\u793a\u3059\u308b ###\r\n&gt; docker diff ubuntu-nginx-container\r\nC \/root\/.bash_history\r\nC \/run\/nginx.pid\r\nC \/var\/log\/nginx\/access.log\r\nC \/var\/log\/nginx\/error.log\r\n\r\n### \u30b3\u30f3\u30c6\u30ca\u306e\u30d7\u30ed\u30bb\u30b9\u3092\u78ba\u8a8d\u3059\u308b ###\r\n&gt; docker top ubuntu-nginx-container\r\nPID                 USER                TIME                COMMAND\r\n14521               root                0:00                \/bin\/bash\r\n14671               root                0:00                nginx: master process \/usr\/sbin\/nginx\r\n14672               xfs                 0:00                nginx: worker process\r\n14673               xfs                 0:00                nginx: worker process\r\n\r\n### \u30b3\u30f3\u30c6\u30ca\u5185\u90e8\u3067\u5b9f\u884c\u3055\u308c\u305f\u6a19\u6e96\u51fa\u529b\u3001\u6a19\u6e96\u30a8\u30e9\u30fc\u51fa\u529b\u3078\u306e\u5185\u5bb9\u3092\u78ba\u8a8d\u3059\u308b ###\r\n&gt; docker logs ubuntu-nginx-container\r\nroot@76c54b34974b:\/# \/etc\/init.d\/nginx start\r\n * Starting nginx nginx\r\n\r\n### \u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u306e\u4e2d\u9593\u30a4\u30e1\u30fc\u30b8\u306e\u5c65\u6b74\u3092\u8868\u793a\u3059\u308b ###\r\n&gt; docker history akatuki\/ubuntu-nginx\r\nIMAGE               CREATED             CREATED BY                                      SIZE                COMMENT\r\n507f4bf357e5        30 minutes ago      \/bin\/bash                                       115MB\r\n113a43faa138        5 weeks ago         \/bin\/sh -c #(nop)  CMD &#x5B;&quot;\/bin\/bash&quot;]            0B\r\n&lt;missing&gt;           5 weeks ago         \/bin\/sh -c mkdir -p \/run\/systemd &amp;&amp; echo 'do\u2026   7B\r\n&lt;missing&gt;           5 weeks ago         \/bin\/sh -c sed -i 's\/^#\\s*\\(deb.*universe\\)$\u2026   2.76kB\r\n&lt;missing&gt;           5 weeks ago         \/bin\/sh -c rm -rf \/var\/lib\/apt\/lists\/*          0B\r\n&lt;missing&gt;           5 weeks ago         \/bin\/sh -c set -xe   &amp;&amp; echo '#!\/bin\/sh' &gt; \/\u2026   745B\r\n&lt;missing&gt;           5 weeks ago         \/bin\/sh -c #(nop) ADD file:28c0771e44ff530db\u2026   81.1MB\r\n\r\n### \u30b3\u30f3\u30c6\u30ca\u3092\u51fa\u529b\u3059\u308b ###\r\n&gt; docker export ubuntu-nginx-container &gt; ubuntu-nginx-container.img\r\n<\/pre>\n<h1>\u88dc\u8db3\uff11 &#8211; \u30b3\u30f3\u30c6\u30ca\u7ba1\u7406\u306b\u3064\u3044\u3066<\/h1>\n<h2>\u8907\u6570\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5229\u7528\u6642\u306e\u30b3\u30f3\u30c6\u30ca\u6570\u306b\u3064\u3044\u3066<\/h2>\n<p>\u30fb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3054\u3068\u306b\u30b3\u30f3\u30c6\u30ca\u3092\u5206\u5272\u304c\u30d9\u30b9\u30c8\u30d7\u30e9\u30af\u30c6\u30a3\u30b9<br \/>\n\u3000\u30fb\u30b3\u30f3\u30c6\u30ca\u3092\u4f5c\u308a\u76f4\u3059\u969b\u306b\u3001\u8a2d\u5b9a\u5909\u66f4\u5185\u5bb9\u304c\u660e\u78ba\u306b\u306a\u308b\u305f\u3081<\/p>\n<h2>\u30b3\u30f3\u30c6\u30ca\u306e\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8<\/h2>\n<p>\u30fb\u30b3\u30f3\u30c6\u30ca\u8d77\u52d5\u6642\u306b\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u4f5c\u6210\u3059\u308b<br \/>\n\u3000\u505c\u6b62\u6642\u306f\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u4fdd\u6301\u3059\u308b<br \/>\n\u3000\u524a\u9664\u6642\u306b\u30b9\u30ca\u30c3\u30d7\u30b7\u30e7\u30c3\u30c8\u3092\u524a\u9664\u3059\u308b<\/p>\n<h1>\u88dc\u8db3\uff12 &#8211; \u3059\u3079\u3066\u306e\u30b3\u30f3\u30c6\u30ca\u30a4\u30e1\u30fc\u30b8\u3092\u524a\u9664\u3059\u308b<\/h1>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&gt; docker rmi -f  $(docker images -aq)\r\n<\/pre>\n<h1>\u53c2\u8003<\/h1>\n<p><a href=\"https:\/\/japan.zdnet.com\/article\/35082732\/\">\u4eca\u3001\u306a\u305c\u300cDocker\u300d\u306a\u306e\u304b<\/a><br \/>\n<a href=\"http:\/\/gihyo.jp\/book\/2015\/978-4-7741-7654-3\">Docker\u5b9f\u8df5\u5165\u9580\u2015\u2015Linux\u30b3\u30f3\u30c6\u30ca\u6280\u8853\u306e\u57fa\u790e\u304b\u3089\u5fdc\u7528\u307e\u3067<\/a><br \/>\n<a href=\"https:\/\/qiita.com\/voluntas\/items\/68c1fd04dd3d507d4083\">docker \u30b3\u30de\u30f3\u30c9 \u30c1\u30fc\u30c8\u30b7\u30fc\u30c8<\/a><br \/>\n<a href=\"https:\/\/www.osscons.jp\/cloud\/%E3%83%80%E3%82%A6%E3%83%B3%E3%83%AD%E3%83%BC%E3%83%89\/?action=common_download_main&#038;upload_id=698\">docker\u521d\u5fc3\u8005\u306e\u65b9\u304c\u77e5\u3063\u3066\u304a\u3044\u305f\u65b9\u304c\u3088\u3044\u57fa\u790e\u77e5\u8b58<\/a><br \/>\n<a href=\"https:\/\/qiita.com\/nrk_baby\/items\/d872e8f051a96a313601\">docker-compose up\u3059\u308b\u3068\u30b3\u30f3\u30c6\u30ca\u304c\u4e00\u77ac\u3067exited with code 1\u3059\u308b\u8a71<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u66f4\u3067\u3059\u304c\u3001\u3001Docker\u306e\u57fa\u672c\u7684\u306a\u3053\u3068\u3092\u307e\u3068\u3081\u308b\u3002 Docker\u3068\u306f Docker\u304c\u5fc5\u8981\u3068\u306a\u3063\u305f\u80cc\u666f \u30fb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306f\u4f5c\u3063\u305f\u3089\u7d42\u308f\u308a\u3067\u306f\u306a\u304f\u3001\u30e6\u30fc\u30b6\u306e\u8981\u671b\u3092\u53d6\u308a\u8fbc\u307f\u4fa1\u5024\u306e\u3042\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u6539\u5584\u3057\u3066\u3044\u304f\u5fc5\u8981\u304c\u3042\u308b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[72],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2961"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2961"}],"version-history":[{"count":10,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2961\/revisions"}],"predecessor-version":[{"id":2972,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2961\/revisions\/2972"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2961"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}