Chris Stryczynski

Software Developer / Consultant

Change docker library location using systemd

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.