image 'hello-world:latest' locally latest: Pulling from library/hello-world 1b930d010525: Pull complete Digest: sha256:d1668a9a1f5b42ed3f46b70b9cb7c88fd8bdc8a2d73509bb0041cf436018fbf5 Status: Downloaded newer image for hello-world:latest Hello from Docker! This message shows that your installation appears to be working correctly. (略)
image 'hello-world:latest' locally latest: Pulling from library/hello-world 1b930d010525: Pull complete Digest: sha256:d1668a9a1f5b42ed3f46b70b9cb7c88fd8bdc8a2d73509bb0041cf436018fbf5 Status: Downloaded newer image for hello-world:latest Hello from Docker! This message shows that your installation appears to be working correctly. (略) コンテナイメージのダウンロード(※ 既にローカルにイメージがある場合は出ない)
image 'hello-world:latest' locally latest: Pulling from library/hello-world 1b930d010525: Pull complete Digest: sha256:d1668a9a1f5b42ed3f46b70b9cb7c88fd8bdc8a2d73509bb0041cf436018fbf5 Status: Downloaded newer image for hello-world:latest Hello from Docker! This message shows that your installation appears to be working correctly. (略) アプリケーション「 Hello world」の実行結果
installation appears to be working correctly. To generate this message, Docker took the following steps: 1. The Docker client contacted the Docker daemon. 2. The Docker daemon pulled the "hello-world" image from the Docker Hub. (amd64) 3. The Docker daemon created a new container from that image which runs the executable that produces the output you are currently reading. 4. The Docker daemon streamed that output to the Docker client, which sent it to your terminal.
-a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES dba1b03834f1 hello-world "/hello" 9 seconds ago Exited (0) 7 seconds ago hoge_fuga コンテナの一覧を表示するコマンド $ docker ps [OPTIONS] (-aはすべてのコンテナを表示するオプション )
-a すると、、 $ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 9101db8ca25a hello-world "/hello" 16 seconds ago Exited (0) 14 seconds ago piyo_poyo dba1b03834f1 hello-world "/hello" 7 minutes ago Exited (0) 7 minutes ago hoge_fuga
-a すると、、 コンテナが増えている IMAGEが共通のCONTAINERが別々にできる $ docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 9101db8ca25a hello-world "/hello" 16 seconds ago Exited (0) 14 seconds ago piyo_poyo dba1b03834f1 hello-world "/hello" 7 minutes ago Exited (0) 7 minutes ago hoge_fuga
REPOSITORY TAG IMAGE ID CREATED SIZE hello-world latest fce289e99eb9 12 months ago 1.84kB イメージの一覧を表示するコマンド $ docker images [OPTIONS] [REPOSITORY[:TAG]]