how to physically remove untagged docker images

前端 未结 6 1056
盖世英雄少女心
盖世英雄少女心 2021-02-04 02:39

when I run a command such as sudo docker rmi me/myimage I get the responce ...image untagged, but, when I rerun sudo docker images I can see that this \"untagged\" image i

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-04 03:22

    This commands also work

    docker rmi $(docker images | grep "^" | awk '{print $3}')
    

    Delete images with force to forgo stopped containers that might be using image

    docker rmi -f $(docker images | grep "^" | awk '{print $3}')
    

提交回复
热议问题