はじまる

適当な事を適当に書く

docker やり直しメモ(1)

はじめに

めっちゃ忘れてるので、チュートリアルからやり直し。

docs.docker.com

環境

  • macOS HighSierra 10.13.4
  • docker community edition Version 18.03.1-ce-mac65 (24312)

チュートリアル実行手順

パート1:はじめに
~ ❯❯❯ docker --version
Docker version 18.03.1-ce, build 9ee9f40

~ ❯❯❯ docker info
Containers: 14
 Running: 0
 Paused: 0
 Stopped: 14
Images: 14
...

~ ❯❯❯ docker container ls
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES

~ ❯❯❯ docker image ls
REPOSITORY                                   TAG                 IMAGE ID            CREATED             SIZE
alpine                                       latest              7328f6f8b418        11 months ago       3.97MB
atlassianlabs/localstack                     latest              5bf4f14dfdb7        13 months ago       1.05GB
bash                                         latest              a0a73a853323        14 months ago       12.2MB
redis                                        latest              45c3ea2cecac        16 months ago       183MB
hello-world                                  latest              48b5124b2768        16 months ago       1.84kB
kitematic/hello-world-nginx                  latest              03b4557ad7b9        2 years ago         7.91MB

~ ❯❯❯ docker container ls --all
CONTAINER ID        IMAGE                                COMMAND                  CREATED             STATUS                       PORTS                                                                                                 NAMES
814dbd8d0c9d        hello-world                          "/hello"                 5 minutes ago       Exited (0) 5 minutes ago                                                                                                           awesome_perlman
3ddfdf2c50d4        atlassianlabs/localstack             "/usr/bin/supervisord"   11 months ago       Exited (255) 11 months ago   0.0.0.0:4567-4580->4567-4580/tcp, 0.0.0.0:8080->8080/tcp, 4581/tcp                                    elastic_stonebraker
85add89c592d        atlassianlabs/localstack             "/usr/bin/supervisord"   11 months ago       Exited (255) 11 months ago   0.0.0.0:4567-4580->4567-4580/tcp, 0.0.0.0:8080->8080/tcp, 4581/tcp                                    stupefied_boyd
59885f9baf15        atlassianlabs/localstack             "/usr/bin/supervisord"   11 months ago       Exited (255) 11 months ago   0.0.0.0:4567-4580->4567-4580/tcp, 0.0.0.0:8080->8080/tcp, 4581/tcp                                    confident_clarke
0459cdbc9086        atlassianlabs/localstack             "/usr/bin/supervisord"   11 months ago       Exited (0) 11 months ago                                                                                                           vigilant_dubinsky
2f2d1f228b5b        bash                                 "docker-entrypoint.s…"   13 months ago       Exited (0) 13 months ago                                                                                                           determined_turing
a4c11e99ab44        hello-world                          "/hello"                 13 months ago       Exited (0) 13 months ago                                                                                                           musing_payne
d82c98b24c04        hello-world                          "/hello"                 13 months ago       Exited (0) 13 months ago                                                                                                           musing_hodgkin
4a826db15fed        atlassianlabs/localstack             "/usr/bin/supervisord"   13 months ago       Exited (0) 13 months ago                                                                                                           dazzling_ritchie
ae387ac9f6ab        atlassianlabs/localstack             "/usr/bin/supervisord"   13 months ago       Exited (0) 13 months ago                                                                                                           frosty_kalam
5a4a9cfd5d7a        atlassianlabs/localstack             "/usr/bin/supervisord"   13 months ago       Exited (255) 13 months ago   0.0.0.0:4567-4580->4567-4580/tcp, 0.0.0.0:8080->8080/tcp, 4581/tcp                                    keen_goldberg
6ab994bfc680        atlassianlabs/localstack             "/usr/bin/supervisord"   13 months ago       Exited (255) 13 months ago   0.0.0.0:4567-4580->4567-4580/tcp, 0.0.0.0:8080->8080/tcp, 4581/tcp                                    awesome_goldberg
bfca1cf83cd4        ec798eba2c56                         "docker-entrypoint.s…"   16 months ago       Exited (255) 16 months ago   0.0.0.0:32775->4369/tcp, 0.0.0.0:32774->5671/tcp, 0.0.0.0:32773->5672/tcp, 0.0.0.0:32772->25672/tcp   rabbitmq
6263ce07f2af        redis:latest                         "docker-entrypoint.s…"   16 months ago       Exited (0) 16 months ago                                                                                                           redis
64b3c95b136e        kitematic/hello-world-nginx:latest   "sh /start.sh"           16 months ago       Exited (137) 16 months ago                                                                                                         hello-world-nginx