docker rmi 관련 문의입니다.
안녕하세요. 자문자답입니다. ubuntu@ip-172-31-38-226:~/2021_DEV_HTML$ docker ps -aCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES3147dd613026 httpd:alpine "httpd-foreground" 15 minutes ago Up 5 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp apacheweb919738d198d7 httpd "httpd-foreground" 3 hours ago Exited (0) 3 hours ago relaxed_jemison15181a2871cc httpd "httpd-foreground" 7 days ago Exited (0) 7 days ago nervous_greiderd3e9b6736e2a ubuntu "/bin/bash" 7 days ago Exited (137) 7 days ago suspicious_khayyam5981cf8b101f ubuntu "/bin/bash" 7 days ago Exited (137) 7 days ago vibrant_hermann59888bed404a ubuntu "/bin/bash" 7 days ago Exited (0) 7 days ago myubuntu32a4e171f1d33 ubuntu "/bin/bash" 7 days ago Exited (0) 7 days ago friendly_mendelf32f9cd1c2ea ubuntu "/bin/bash" 7 days ago Exited (0) 7 days ago myubuntu2b41d9e5aa41 ubuntu "/bin/bash" 7 days ago Exited (0) 7 days ago charming_keplerb2b8056f7331 ubuntu "/bin/bash" 7 days ago Exited (0) 7 days ago elastic_cohenfdf144797e30 hello-world "/hello" 7 days ago Exited (0) 7 days ago hardcore_hypatiaubuntu@ip-172-31-38-226:~/2021_DEV_HTML$ docker rm 919919ubuntu@ip-172-31-38-226:~/2021_DEV_HTML$ docker rm 151151ubuntu@ip-172-31-38-226:~/2021_DEV_HTML$ docker ps -aCONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES3147dd613026 httpd:alpine "httpd-foreground" 15 minutes ago Up 5 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp apachewebd3e9b6736e2a ubuntu "/bin/bash" 7 days ago Exited (137) 7 days ago suspicious_khayyam5981cf8b101f ubuntu "/bin/bash" 7 days ago Exited (137) 7 days ago vibrant_hermann59888bed404a ubuntu "/bin/bash" 7 days ago Exited (0) 7 days ago myubuntu32a4e171f1d33 ubuntu "/bin/bash" 7 days ago Exited (0) 7 days ago friendly_mendelf32f9cd1c2ea ubuntu "/bin/bash" 7 days ago Exited (0) 7 days ago myubuntu2b41d9e5aa41 ubuntu "/bin/bash" 7 days ago Exited (0) 7 days ago charming_keplerb2b8056f7331 ubuntu "/bin/bash" 7 days ago Exited (0) 7 days ago elastic_cohenfdf144797e30 hello-world "/hello" 7 days ago Exited (0) 7 days ago hardcore_hypatiaubuntu@ip-172-31-38-226:~/2021_DEV_HTML$ docker system dfTYPE TOTAL ACTIVE SIZE RECLAIMABLEImages 4 3 305.5MB 168.3MB (55%)Containers 9 1 28B 26B (92%)Local Volumes 0 0 0B 0BBuild Cache 0 0 0B 0Bubuntu@ip-172-31-38-226:~/2021_DEV_HTML$ docker imagesREPOSITORY TAG IMAGE ID CREATED SIZEubuntu latest b6548eacb063 12 days ago 77.8MBhttpd alpine 489db2792d7f 13 days ago 59.3MBhttpd latest a6ca7b52a415 3 weeks ago 168MBhello-world latest 9c7a54a9a43c 7 months ago 13.3kBubuntu@ip-172-31-38-226:~/2021_DEV_HTML$ docker rmi httpd:latestUntagged: httpd:latestUntagged: httpd@sha256:04551bc91cc03314eaab20d23609339aebe2ae694fc2e337d0afad429ec22c5aDeleted: sha256:a6ca7b52a41549f13f7de6aeac4ab6ffebd41585fbf2273f00fd6e82bb721949Deleted: sha256:cdfabdae5172d05eb5141bb77aaa300a195570b0befd780b6e2fc7bd20ea2cd5Deleted: sha256:16d494768121f45ba050ad50a669400818478131cb930bb0c8b5d2f908057142Deleted: sha256:29b181ca372e770053cc03410789236d7a96171f1f77110741d0f3f068a29c67Deleted: sha256:e8254408730a345e2ccf863e19c850e7ee78b59dfd9e4aa265b0107dd4301be5Deleted: sha256:92770f546e065c4942829b1f0d7d1f02c2eb1e6acf0d1bc08ef0bf6be4972839이미지 이름이 httpd인 애들 다 제거후에 진행하니까 강의처럼 진행이됩니다.