Last active
July 15, 2019 09:02
-
-
Save jokla/2632d3097b38c474eedf72b973262368 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