docker images are stored under /var/lib/docker
If you run out of space in /var partition.?
ok move /var/lib/docker directory to /root (considering space is available under /root) and create a symlink from /var/lib/docker to /root/docker.
Ensure you stop docker service before moving and verify docker daemon works fine after creating symlink.
so, all the commands put together:
systemctl stop docker
mv /var/lib/docker /root/
ln -sf /root/docker /var/lib/docker
systemctl start docker
systemctl status docker
thats it :)
No comments:
Post a Comment