Last active
November 29, 2017 15:45
-
-
Save mitchwongho/4292feb9537c3c6fb40f to your computer and use it in GitHub Desktop.
Docker: nsenter
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
$ docker inspect --format {{.State.Pid}} <CONTAINER_PID> | |
e.g. $ PID=%(docker inspect --format {{.State.Pid}} <CONTAINER PID>) | |
$ sudo nsenter --target <pid> --mount --uts --ipc --net --pid /bin/sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment