Skip to content

Instantly share code, notes, and snippets.

@netmarkjp
Created December 13, 2016 22:06
Show Gist options
  • Save netmarkjp/0a13ca2f7b1b0cfe8261d7601e5a79b2 to your computer and use it in GitHub Desktop.
Save netmarkjp/0a13ca2f7b1b0cfe8261d7601e5a79b2 to your computer and use it in GitHub Desktop.
oneliner: edit systemd config with systemctl
EDITOR=tee sudo -E bash -c '( echo "[Service]" ; echo "ExecStart=" ; echo "ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:2375" ) | systemctl edit docker.service'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment