As recently I need to install oracle in docker 17.05.0-ce , but find the image size is large and the fs on linux could not hold it, so I need to change the rootdir on redhat linux to another filesystem. and I have tried several options from the website and either of them could not work. and finally, It seems that we need to change the file
[root@bigdata docker]# vi /etc/systemd/system/docker.service.d/docker.conf
[Service]
ExecStart=
ExecStart=/usr/bin/dockerd --graph=/data/docker --storage-driver=overlay
/data/docker should not be quoted. Then run the command "systemctl daemon-reload" to make it work.
Reference
https://stackoverflow.com/questions/24309526/how-to-change-the-docker-image-installation-directory