Check this
I have followed instructions in Runtime directory and storage driver on Ubuntu 16.04.1:
-
mkdir /etc/systemd/system/docker.service.d
-
create some drop-in.conf file in /etc/systemd/system/docker.service.d , e.g. docker-overlay.conf
-
add these lines into drop-in file, replace “/mnt/docker-data” with your new docker data location:
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd --graph="/mnt/docker-data" --storage-driver=overlay -
sudo systemctl daemon-reload
-
sudo systemctl restart docker