Skip to content

Instantly share code, notes, and snippets.

@SpiralOutDotEu
Created December 30, 2015 18:50
Show Gist options
  • Save SpiralOutDotEu/3a4215a5df7e276ba819 to your computer and use it in GitHub Desktop.
Save SpiralOutDotEu/3a4215a5df7e276ba819 to your computer and use it in GitHub Desktop.
change docker.service to protect using namespace
# replace in /lib/systemd/system/docker.service :
# this
# ExecStart=/usr/bin/docker -d -H fd://
# with this
# ExecStart=/usr/bin/docker --userns-remap=default -s overlay -d -H fd://
sed -i 's/ExecStart=\/usr\/bin\/docker -d -H fd:\/\//ExecStart=\/usr\/bin\/docker --userns-remap=default -s overlay -d -H fd:\/\//' /lib/systemd/system/docker.service
# reload uints
systemctl daemon-reload
# Restart daemon
systemctl restart docker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment