我试图按以下方式删除Docker映像,但不知道如何执行此操作。
Docker映像列表
$ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
<none> <none> 04251cf7a8b9 About a minute ago 356.1 MB
pg-image latest 1060b3e656b6 5 minutes ago 323.9 MB
redis-image latest 8df469463da3 14 minutes ago 137.7 MB
ubuntu 12.04 822a01ae9a15 2 weeks ago 108.1 MB
我想删除的Docker映像:
$ docker rmi 042
Error response from daemon: Conflict, cannot delete 04251cf7a8b9 because
the container 4ac3a09ab4d3 is using it, use -f to force
2014/08/27 15:16:15 Error: failed to remove one or more images
当我尝试将其删除时-f
未成功。如何正确删除此图像,为什么不能使用删除它docker rmi -f 042
?