본문 바로가기

리눅스

[명령어] docker rmi

728x90

docker rmi

모든 이미지 삭제

$ docker rmi -f $(docker images -q)

untagged 이미지만 조회

$ docker images -f "dangling=true" -q

docker image untagged(none) 삭제

$ docker rmi $(docker images -f "dangling=true" -q)

docker image 필터 적용 reference="registry.binddns.com/playground/elasticsearch:*"

$ docker images -q --filter=reference="registry.binddns.com/playground/elasticsearch:*"
48cbfb7e4f8e


$ docker rmi -f `docker images -q --filter=reference="registry.binddns.com/playground/elasticsearch:*"`

 

728x90