Skip to content

Instantly share code, notes, and snippets.

@connormanning
Created April 12, 2017 20:50
Show Gist options
  • Save connormanning/26cea265bf81fdeae4e536e8afec936f to your computer and use it in GitHub Desktop.
Save connormanning/26cea265bf81fdeae4e536e8afec936f to your computer and use it in GitHub Desktop.
Move docker image location
  1. Create config directory and create a config file
sudo mkdir /etc/systemd/system/docker.service.d/
sudo nano /etc/systemd/system/docker.service.d/custom.conf

Contents of that file should be:

[Service]
ExecStart=
ExecStart=/usr/bin/dockerd -g YOUR_DESIRED_DOCKER_IMAGE_ROOT_HERE
  1. Restart docker service:
sudo systemctl daemon-reload
sudo systemctl restart docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment