root@photon-machine [ ~ ]# docker search centos | more NAME DESCRIPTION STARS OFFICIAL AUTOMATED centos The official build of CentOS. 3050 [OK]
root@photon-machine [ ~ ]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE root@photon-machine [ ~ ]#
いまはイメージがなにもない状態です。
root@photon-machine [ ~ ]# docker pull centos Using default tag: latest latest: Pulling from library/centos Digest: sha256:c577af3197aacedf79c5a204cd7f493c8e07ffbce7f88f7600bf19c688c38799 Status: Downloaded newer image for centos:latest
root@photon-machine [ ~ ]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE centos latest 67591570dd29 6 weeks ago 191.8 MB root@photon-machine [ ~ ]#
落ちてきているのが確認出来ました。
root@photon-machine [ ~ ]# docker rmi centos:latest Untagged: centos:latest Untagged: centos@sha256:c577af3197aacedf79c5a204cd7f493c8e07ffbce7f88f7600bf19c688c38799
root@photon-machine [ ~ ]# docker images REPOSITORY TAG IMAGE ID CREATED SIZE root@photon-machine [ ~ ]#
消えました。