4.컨테이너 제거
사용이 완료되어 더 이상 필요 없는 컨테이너를 제거하기 위해서는 docker rm 컨테이너ID or 컨테이너명 명령어를 사용
컨테이너 제거
terminal
docker rm 컨테이너ID or 컨테이너명1. 컨테이너 제거
docker rm(remove) 명령어를 통해 컨테이너의 NAMES로 해당 컨테이너 제거
terminal
docker rm sad_maxwell모든 컨테이너 조회
terminal
docker ps -a2. 컨테이너 생성에 사용한 이미지 제거
docker rmi(remove image) 명령어를 통해 컨테이너 생성에 사용했던 hello-world 이미지 제거
terminal
docker rmi hello-world실행 결과
terminal
Untagged: hello-world:latest
Untagged: hello-world@sha256:d000bc569937abbe195e20322a0bde6b2922d805332fd6d8a68b19f524b7d21d
Deleted: sha256:d2c94e258dcb3c5ac2798d32e1249e42ef01cba4841c2234249495f87264ac5a
Deleted: sha256:ac28800ec8bb38d5c35b49d45a6ac4777544941199075dff8c4eb63e093aa81e이미지 제거 여부 확인
terminal
docker imagesLast updated on