Docker error : no space left on device

后端 未结 25 3016
悲哀的现实
悲哀的现实 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:54

    The current best practice is

    docker system prune
    

    This 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
    

    This is permanent.

    Make sure you read this answer, re: Volumes

    You may also be interested in this answer, if docker system prune does not work for you.

提交回复
热议问题