IRPAN KUSUMA W
Posted on March 11, 2022
Halo sobat,
Now i want to tell you something about symlink on linux when your docker path storage have full capacity. Here script for execute this
- Stop docker service
systemctl stop docker
- Symlink your docker path to some-path
sudo rsync -aP /var/lib/docker /new/path/folder
- Update your file daemon.json
vi /etc/docker/daemon.json
#add this line on daemon.json
{
"data-root": "/new/path/folder"
}
- Start all docker image
docker start $(docker ps -a -q)
- Start docker service
systemctl start docker
💖 💪 🙅 🚩
IRPAN KUSUMA W
Posted on March 11, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.