Docker - write no space left on device on /var/lib/docker/tmp
When deploying docker, it is possible to see the following error
ERROR: write /var/lib/docker/tmp/GetImageBlob123456789: no space left on device
Since the error is prefix at /var/lib/docker, that is probably the docker data directory running out of space and it is default to / mount which may be low in disk space in many cases.
To workaround it,
1) stop docker
service docker stop
2) create /etc/docker/daemon.json
3) set the following to a mount that is space at /etc/docker/daemon.json
{
"data-root": "/path/to/your/docker"
}
4) start docker
service docker start
Reference
1) https://www.guguweb.com/2019/02/07/how-to-move-docker-data-directory-to-another-location-on-ubuntu/
Comments
Post a Comment