-
-
Save anilshrish/eda8e9523ef6cb1909d3734cd589948f to your computer and use it in GitHub Desktop.
Change Docker root folder Ubuntu 14.04 and Ubuntu 16.04
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo service docker stop | |
$ gksudo gedit /etc/default/docker | |
# Use DOCKER_OPTS to modify the daemon startup options. | |
DOCKER_OPTS="--dns 8.8.8.8 --dns 8.8.4.4 -g /home/jokla/docker/docker/" | |
$ sudo service docker start | |
UBUNTU 16.04 | |
See reference [here](https://docs.docker.com/engine/reference/commandline/dockerd//#daemon-configuration-file) | |
https://chjdev.com/2016/06/07/docker-ubuntu/ | |
$ sudo touch /etc/docker/daemon.json | |
$ gksudo gedit /etc/docker/daemon.json | |
``` | |
{ | |
"graph": "/home/gclaudio/docker/" | |
} | |
``` | |
$ sudo systemctl daemon-reload | |
$ sudo systemctl restart docker | |
$ sudo systemctl enable docker | |
if there is an error: | |
$ sudo journalctl -xe | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment