strace in docker
Switch branches/tags
Nothing to show
Clone or download
Latest commit 5d02364 Mar 4, 2017
Failed to load latest commit information.
Dockerfile use -f by default Mar 3, 2017
Makefile first commit Mar 3, 2017 use -f by default Mar 3, 2017

strace Docker

This all comes from this blog post.

User the strace container using the same pid and net than the target.

To strace a container named web:

$ docker run -t --pid=container:web --net=container:web --cap-add sys_admin --cap-add sys_ptrace strace

Or also simply launch an Alpine shell:

$ docker run -it --pid=container:web --net=container:web --cap-add sys_admin alpine sh