inflearn logo
강의

Course

Instructor

Docker and Modern Server Technologies for Full Stack (Linux, nginx, AWS, HTTPS, Deployment) [Full Stack Part3]

Learning Key Docker Commands 6 (Various Options for Handling Containers)

docker rmi 관련 문의입니다.

Resolved

293

qor0923

7 asked

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$

 

 

감사합니다..

네트워크 linux docker

Answer 1

0

qor0923

안녕하세요. 자문자답입니다.

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인 애들 다 제거후에 진행하니까 강의처럼 진행이됩니다.

25년도 12월 docker compose 설치 방법이 레거시된 상황

0

98

1

학습자료는 구글드라이브에서만 볼 수 있나요?

0

78

1

강의 외 개발자 진로 관련 질문입니다!

0

64

1

왜 전 오류가 뜨나요??

0

98

1

학습자료가 없어요

0

143

1

강의가 재생이 되지 않습니다.

0

97

1

풀스택을 위한 도커와 최신 서버 기술(리눅스, nginx, AWS, HTTPS, 배포까지) [풀스택 Part3]

0

67

1

도커와 최신 서버 기술 수료시 웹 배포

0

150

1

개인키, 공인 인증서 폴더

0

134

1

워드프레스가 어렵네요 ㅠㅠㅠ

0

163

2

도커 활용하기 (주피터 노트북 서버 만들어보기)에서 질문있습니다

0

151

1

안녕하세요 배포 관련 질문이 있습니다.

0

136

1

ec2 인스턴스에서 우분투 버전관련 문의입니다

0

210

1

주피터 노트북 서버 만들어보기_pymysql 설치관련

0

252

1

window 데스크탑에 도커 사용하려고 하는데요~

0

167

1

안녕하세요 aws 사용 안해도 되나요 ?

0

183

1

/usr/local/apache2/htdocs 경로관련

0

223

2

섹션 16, 17 docker-compose up -d 명령 실행 시 다운로드 속도 느려짐

0

221

1

도커 컨테이너와 이미지 조사하기-docker run 실행시 컨테이너 생성 안됨 오류

0

448

1

mysql 접속 port 개방할 때 궁금한 점이 있습니다.

0

155

1

강의 소개에 나오는 강의자료? 들은 어떻게 받을수 있나요?

0

193

1

[인프런-수업자료요청] e북 자료(구글) 권한 요청드립니다 !

0

144

1

AWS VPC 과금 문제(탄력적 IP)

0

383

2

강의 섹션2 이후부터 강의화면 안보이는 이슈있습니다.

0

186

1