Created
December 30, 2015 18:50
-
-
Save SpiralOutDotEu/3a4215a5df7e276ba819 to your computer and use it in GitHub Desktop.
change docker.service to protect using namespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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