Ob Ubuntu 16.04 Server (64bit) I could successfully change the path by editing the
/etc/systemd/system/docker.service.d
like this
[Service]
EnvironmentFile=-/etc/sysconfig/docker
EnvironmentFile=-/etc/sysconfig/docker-storage
EnvironmentFile=-/etc/sysconfig/docker-network
ExecStart=
ExecStart=/usr/bin/docker daemon -H 0.0.0.0:2376 -H unix:///var/run/docker.sock $OPTIONS \
$DOCKER_STORAGE_OPTIONS \
$DOCKER_NETWORK_OPTIONS \
$BLOCK_REGISTRY \
--tlsverify \
--tlscacert=/etc/docker/cert/ca.pem \
--tlscert=/etc/docker/cert/server-cert.pem \
--tlskey=/etc/docker/cert/server-key.pem \
-g /data/docker
Added the line with -g
(and don’t forget the ’ ’ in the line before).