Docker error : no space left on device

后端 未结 25 3009
悲哀的现实
悲哀的现实 2020-11-28 00:01

I installed docker on a Debian 7 machine in the following way

$ echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list
$          


        
25条回答
  •  生来不讨喜
    2020-11-28 00:40

    1. Remove Containers:

    $ docker rm $(docker ps -aq)

    2. Remove Images:

    $ docker rmi $(docker images -q)

    Instead of perform steps 1 and 2 you can do:

    docker system prune

    This command will remove:

    • All stopped containers
    • All volumes not used by at least one container
    • All networks not used by at least one container
    • All dangling images

提交回复
热议问题