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