Docker中images中none的镜像删除
docker build
或是 pull
命令就会产生临时镜像。如果我们用dockerfile创建一个helloworld镜像后,因为版本更新需要重新创建,那么以前那个版本的镜像就会成为临时镜像。这个是需要删除的。删除命令见下。
sudo docker rmi $(sudo docker images -f "dangling=true" -q)
posted on 2017-02-05 14:01 ilinux_one 阅读(738) 评论(0) 编辑 收藏 举报