Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

IRPAN KUSUMA W
IRPAN KUSUMA W

Posted on

     

How to rsync docker images path to some-path

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
Enter fullscreen modeExit fullscreen mode
  • Symlink your docker path to some-path
sudo rsync  -aP /var/lib/docker /new/path/folder
Enter fullscreen modeExit fullscreen mode
  • Update your file daemon.json
vi /etc/docker/daemon.json#add this line on daemon.json{  "data-root": "/new/path/folder"}
Enter fullscreen modeExit fullscreen mode
  • Start all docker image
docker start $(docker ps -a -q)
Enter fullscreen modeExit fullscreen mode
  • Start docker service
systemctl start docker
Enter fullscreen modeExit fullscreen mode

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

  • Education
    i didn`t school, just hobbies about this
  • Work
    freelance, with be loved with engineering models
  • Joined

More fromIRPAN KUSUMA W

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp