Skip to content

Instantly share code, notes, and snippets.

@logicalparadox
Forked from philips/gist:7555876
Created February 17, 2014 16:33
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save logicalparadox/9053959 to your computer and use it in GitHub Desktop.
Save logicalparadox/9053959 to your computer and use it in GitHub Desktop.

Add a local docker unit file

Create a file called /media/state/units/docker-local.service that has the following contents:

[Unit]
Description=docker local

[Service]
PermissionsStartOnly=true
ExecStartPre=/usr/bin/systemctl kill docker.service
ExecStart=/usr/bin/docker -d

[Install]
WantedBy=local.target

Enable the local docker

sudo systemctl restart local-enable.service

Have fun!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment