Docker Community Forums

Share and learn in the Docker community.

DOCKER_OPTS to change default path to save containers

beta

(Samir B. Amin) #1

I am looking for analogous configuration files like in Ubuntu, /etc/default/docker and /etc/init/docker.confto change default path to save containers. It is currently set at~/Library/Containers/com.docker.docker` and I prefer to save it to externally mounted disk instead of using my home directory.

I can see plist file at /Applications/Docker.app/Contents/Resources/com.docker.vmnetd.plist but I could not find option to change default path to save container data. Wish this could be as easy as changing DOCKER_OPTS variable in linux!