Docker: How to delete all local Docker images

后端 未结 16 2326
梦谈多话
梦谈多话 2021-01-29 17:24

I recently started using Docker and never realized that I should use docker-compose down instead of ctrl-c or docker-compose stop to get r

16条回答
  •  不要未来只要你来
    2021-01-29 17:39

    To simple clear everything do:

    $ docker system prune --all
    

    Everything means:

    • all stopped containers
    • all networks not used by at least one container
    • all images without at least one container associated to them
    • all build cache

提交回复
热议问题