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
Top comments (0)