The most recent method to change the default data directory location is edit
/lib/systemd/system/docker.service
Replace the ExecStart value with the following:
ExecStart=/usr/bin/dockerd --graph="/mnt/blockstorage/" -H fd://
Replace graph=”” with the location of your new storage.
or
Edit /etc/docker/daemon.json
{ “graph”: “/mnt/blockstorage” }
Leave a Reply