Last active
April 4, 2017 05:37
-
-
Save abhinavkorpal/4616237a26b64aca41f0299b0ef21be2 to your computer and use it in GitHub Desktop.
Docker Commands
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
| cat /var/lib/docker/containers/(container_id) | |
| docker inspect (container_id) | grep Pid | |
| nsenter -m -u -n -p -i -t (Pid_number) /bin/bash ## -m ~ mount, -u ~ uts, -n ~ network, -p ~ process, -i ~ ipc, -t ~ target | |
| ip a | |
| docker-enter (container_id) ## for becoming container root | |
| docker exec -it (container_id) /bin/bash ## for becoming container root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment