W
W
white432016-07-26 22:54:31
linux
white43, 2016-07-26 22:54:31

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 infobefore reboot: pastebin.com/HAk1NJ1v
After: pastebin.com/fbjV0k8L
Difference:

Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 0
...
Backing Filesystem: f2fs

The disks have different file systems. On the system SSD - f2fs, on the HDD (to which I want to move the storage) - ext4.
After rebooting the system does not even start docker run hello-world.
Load log pastebin.com/jTej5Suy
Run log hello-world pastebin.com/wL0qC7n2 , docker process eats 40% of CPU, nothing comes up, iotopshows no disk activity.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Vapelnik, 2016-07-27
@dvapelnik

As far as I remember, I brazenly deleted the old folder, the working folder with docker, changed the /etc/defaults/dockerpath 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)

W
white43, 2016-07-27
@white43

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 question

Ask a Question

731 491 924 answers to any question