Answer the question
In order to leave comments, you need to log in
How to move docker root dir to another drive?
I tried the option --graph
, I specify the path to a directory on another drive. The problem is that before rebooting the system everything works fine, after - no. docker info
before reboot: pastebin.com/HAk1NJ1v
After: pastebin.com/fbjV0k8L
Difference:
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
...
Backing Filesystem: f2fs
docker run hello-world
. hello-world
pastebin.com/wL0qC7n2 , docker process eats 40% of CPU, nothing comes up, iotop
shows no disk activity.
Answer the question
In order to leave comments, you need to log in
As far as I remember, I brazenly deleted the old folder, the working folder with docker, changed the /etc/defaults/docker
path to the folder in the config and restarted it. it worked fine for me. but it was still on v1.7 and on ubuntu 14.04, if my memory serves me right. now it lives in my native folder and I did not transfer it anywhere. I replaced my SSD on my laptop with a bigger one.
here the guys write: https://github.com/docker/docker/issues/3127#issue...
it seems that I did just that - I wrote in the config
describe in more detail what you are doing and what kind of environment you have (what OS, for example)
I'm sorry, my bad. Hurry up. When I started writing step-by-step instructions for reproducing my actions, I accidentally discovered that my HDD is mounted not through /etc/fstab
, but through /etc/rc.local
. I don’t even remember for what reasons and why I did it, but the problem was precisely in this. Those. at the time of loading docker, it turns out that the disk has not yet been mounted, hence the errors.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question