31. Docker CE のインストール(2)
# docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
78445dd45222: Pull complete
Digest:
sha256:c5515758d4c5e1e838e9cd307f6c6a0d620b5e07e6f927b07d0
5f6d12a1ac8d7
Status: Downloaded newer image for hello-world:latest
Hello from Docker!
This message shows that your installation appears to be working
correctly.
……. hello-world という Docker イメージを使いコンテナを実行
32. # docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
hello-world latest 48b5124b2768 4 months ago 1.84 kB
Docker CE のインストール(3)
33. Docker Image ダウンロード
# docker pull httpd
# docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
httpd latest e0645af13ada 3 weeks ago 177 MB
hello-world latest 48b5124b2768 4 months ago 1.84 kB
35. コンテナ停止
# docker container ls
CONTAINER ID IMAGE COMMAND
CREATED STATUS PORTS NAMES
1d8db857c531 httpd "httpd-foreground" 24
seconds ago Up 23 seconds 0.0.0.0:80->80/tcp
loving_yonath
# docker stop 1d8db857c531