Skip to content

sjourdan/strace-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

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

About

strace in docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published