Created
October 20, 2014 23:53
-
-
Save mredar/a984ef16608bbcf7233f to your computer and use it in GitHub Desktop.
nsenter to attach to running docker
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
PID==$(docker inspect --format '{{.State.Pid}}' my_container_id) | |
nsenter --mount --uts --ipc --net --pid --target $PID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment