Docker error : no space left on device

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

    Docker leaves dangling images around that can take up your space. To clean up after Docker, run the following:

    docker image prune [-af if you want to force remove all images]
    

    or with older versions of Docker:

    docker rm $(docker ps -q -f 'status=exited')
    docker rmi $(docker images -q -f "dangling=true")
    

    This will remove exited and dangling images, which hopefully clears out device space.

提交回复
热议问题