d71794132d801bafe9f652df55972fd6eb5fba7b
docker-debug.md
| ... | ... | @@ -2,5 +2,11 @@ |
| 2 | 2 | <!-- SUBTITLE: Shit to look at when docker's gone titsup --> |
| 3 | 3 | |
| 4 | 4 | # Processes |
| 5 | +Find docker processes from system shell |
|
| 5 | 6 | `# docker ps` |
| 6 | -`# ps -eo pid,cgroup,cmd | grep <first 8 chars of containerID>` |
|
| ... | ... | \ No newline at end of file |
| 0 | +`# ps -eo pid,cgroup,cmd | grep <first 8 chars of containerID>` |
|
| 1 | + |
|
| 2 | +# Network |
|
| 3 | +Look at the network config from a container's namespace |
|
| 4 | +`# nsenter -t $(docker inspect --format '{{.State.Pid}}' <containerid>) -n ip {addr|route|...}` |
|
| 5 | +or run bash instead of ip to b=get a shell in the namespace. |
|
| ... | ... | \ No newline at end of file |