Skip to content

Instantly share code, notes, and snippets.

@philips
Created November 20, 2013 01:21
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save philips/7555876 to your computer and use it in GitHub Desktop.
Save philips/7555876 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!

@emmanuel
Copy link

emmanuel commented Jul 9, 2014

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