Chris Stryczynski

Software Developer / Consultant

Change docker library location using systemd

Posted on: 30/04/2018

So the exact change required might change in the future however currently one just needs to set the path with --data-root.

sudo systemctl edit docker.service.

Set the file contents to:

[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -H fd:// --data-root /mnt/exampleAbcxyzPathChangeThis

And reload docker sudo systemctl restart docker.service.

Comments

No comments, yet!

Submit a comment