ubuntu - Docker error : no space left on device -
i installed docker on debian 7 machine in following way
echo deb http://get.docker.io/ubuntu docker main >
/etc/apt/sources.list.d/docker.list
sudo apt-get update curl -ssl https://get.docker.com/ubuntu/ | sudo sh
after when first tried creating image failed following error
time="2015-06-02t14:26:37-04:00" level=info msg="[8] system error: write /sys/fs/cgroup/docker/01f5670fbee1f6687f58f3a943b1e1bdaec2630197fa4da1b19cc3db7e3d3883/cgroup.procs: no space left on device"
here docker info
containers: 2 images: 21 storage driver: aufs root dir: /var/lib/docker/aufs backing filesystem: extfs dirs: 25 dirperm1 supported: true execution driver: native-0.2 kernel version: 3.16.0-0.bpo.4-amd64 operating system: debian gnu/linux 7 (wheezy) cpus: 2 total memory: 15.7 gib warning: no memory limit support warning: no swap limit support
how can increase memory? system configurations stored?
from kal's suggestions:
when got rid of images , containers did free space , image build ran longer before failing same error. question is, space referring , how configure it?
i had same error , solve way:
1 . delete orphaned volumes in docker, can use built-in docker volume command. built-in command deletes directory in /var/lib/docker/volumes not volume make sure didn't put in there want save.
warning careful if have data want keep
cleanup:
$ docker volume rm $(docker volume ls -qf dangling=true)
additional commands:
list dangling volumes:
$ docker volume ls -qf dangling=true
list volumes:
$ docker volume ls
2 . consider removing unused images.
first rid of <none>
images (those generated while building image , if reason image building interrupted, stay there).
here's nice script use remove them
docker rmi $(docker images | grep "^<none>" | awk "{print $3}")
then if using docker compose build images locally every project. end lot of images named folder (example if project folder named hello, find images name hello_blablabla
). consider removing these images
you can edit above script remove them or remove them manually
docker rmi {image-name}
Comments
Post a Comment