해결된 질문
작성
·
199
0
안녕하세요 선생님.
docker 주요 명령 익히기6(컨테이너 다루는 다양한 옵션)
8분:25초 에서
해당 이미지를 제하려고하면
하기와 같은 오류가 뜨면서 삭제가 안되는데, 조치할수있는 사항이 있을까요?..
ubuntu@ip-172-31-38-226:~/2021_DEV_HTML$ docker system df
TYPE TOTAL ACTIVE SIZE RECLAIMABLE
Images 4 4 305.5MB 0B (0%)
Containers 11 1 28B 26B (92%)
Local Volumes 0 0 0B 0B
Build Cache 0 0 0B 0B
ubuntu@ip-172-31-38-226:~/2021_DEV_HTML$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest b6548eacb063 12 days ago 77.8MB
httpd alpine 489db2792d7f 13 days ago 59.3MB
httpd latest a6ca7b52a415 3 weeks ago 168MB
hello-world latest 9c7a54a9a43c 7 months ago 13.3kB
ubuntu@ip-172-31-38-226:~/2021_DEV_HTML$ docker rmi httpd:latest
Error response from daemon: conflict: unable to remove repository reference "httpd:latest" (must force) - container 919738d198d7 is using its referenced image a6ca7b52a415
ubuntu@ip-172-31-38-226:~/2021_DEV_HTML$
감사합니다..
답변 1
0
안녕하세요. 자문자답입니다.
ubuntu@ip-172-31-38-226:~/2021_DEV_HTML$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3147dd613026 httpd:alpine "httpd-foreground" 15 minutes ago Up 5 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp apacheweb
919738d198d7 httpd "httpd-foreground" 3 hours ago Exited (0) 3 hours ago relaxed_jemison
15181a2871cc httpd "httpd-foreground" 7 days ago Exited (0) 7 days ago nervous_greider
d3e9b6736e2a ubuntu "/bin/bash" 7 days ago Exited (137) 7 days ago suspicious_khayyam
5981cf8b101f ubuntu "/bin/bash" 7 days ago Exited (137) 7 days ago vibrant_hermann
59888bed404a ubuntu "/bin/bash" 7 days ago Exited (0) 7 days ago myubuntu3
2a4e171f1d33 ubuntu "/bin/bash" 7 days ago Exited (0) 7 days ago friendly_mendel
f32f9cd1c2ea ubuntu "/bin/bash" 7 days ago Exited (0) 7 days ago myubuntu
2b41d9e5aa41 ubuntu "/bin/bash" 7 days ago Exited (0) 7 days ago charming_kepler
b2b8056f7331 ubuntu "/bin/bash" 7 days ago Exited (0) 7 days ago elastic_cohen
fdf144797e30 hello-world "/hello" 7 days ago Exited (0) 7 days ago hardcore_hypatia
ubuntu@ip-172-31-38-226:~/2021_DEV_HTML$ docker rm 919
919
ubuntu@ip-172-31-38-226:~/2021_DEV_HTML$ docker rm 151
151
ubuntu@ip-172-31-38-226:~/2021_DEV_HTML$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3147dd613026 httpd:alpine "httpd-foreground" 15 minutes ago Up 5 minutes 0.0.0.0:80->80/tcp, :::80->80/tcp apacheweb
d3e9b6736e2a ubuntu "/bin/bash" 7 days ago Exited (137) 7 days ago suspicious_khayyam
5981cf8b101f ubuntu "/bin/bash" 7 days ago Exited (137) 7 days ago vibrant_hermann
59888bed404a ubuntu "/bin/bash" 7 days ago Exited (0) 7 days ago myubuntu3
2a4e171f1d33 ubuntu "/bin/bash" 7 days ago Exited (0) 7 days ago friendly_mendel
f32f9cd1c2ea ubuntu "/bin/bash" 7 days ago Exited (0) 7 days ago myubuntu
2b41d9e5aa41 ubuntu "/bin/bash" 7 days ago Exited (0) 7 days ago charming_kepler
b2b8056f7331 ubuntu "/bin/bash" 7 days ago Exited (0) 7 days ago elastic_cohen
fdf144797e30 hello-world "/hello" 7 days ago Exited (0) 7 days ago hardcore_hypatia
ubuntu@ip-172-31-38-226:~/2021_DEV_HTML$ docker system df
TYPE TOTAL ACTIVE SIZE RECLAIMABLE
Images 4 3 305.5MB 168.3MB (55%)
Containers 9 1 28B 26B (92%)
Local Volumes 0 0 0B 0B
Build Cache 0 0 0B 0B
ubuntu@ip-172-31-38-226:~/2021_DEV_HTML$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
ubuntu latest b6548eacb063 12 days ago 77.8MB
httpd alpine 489db2792d7f 13 days ago 59.3MB
httpd latest a6ca7b52a415 3 weeks ago 168MB
hello-world latest 9c7a54a9a43c 7 months ago 13.3kB
ubuntu@ip-172-31-38-226:~/2021_DEV_HTML$ docker rmi httpd:latest
Untagged: httpd:latest
Untagged: httpd@sha256:04551bc91cc03314eaab20d23609339aebe2ae694fc2e337d0afad429ec22c5a
Deleted: sha256:a6ca7b52a41549f13f7de6aeac4ab6ffebd41585fbf2273f00fd6e82bb721949
Deleted: sha256:cdfabdae5172d05eb5141bb77aaa300a195570b0befd780b6e2fc7bd20ea2cd5
Deleted: sha256:16d494768121f45ba050ad50a669400818478131cb930bb0c8b5d2f908057142
Deleted: sha256:29b181ca372e770053cc03410789236d7a96171f1f77110741d0f3f068a29c67
Deleted: sha256:e8254408730a345e2ccf863e19c850e7ee78b59dfd9e4aa265b0107dd4301be5
Deleted: sha256:92770f546e065c4942829b1f0d7d1f02c2eb1e6acf0d1bc08ef0bf6be4972839
이미지 이름이 httpd인 애들 다 제거후에 진행하니까 강의처럼 진행이됩니다.