Hi,
I’m trying to understand PID in docker. In documentation, this can be used to debug a container. I just wonder if you have any more specific examples on how/why/when to use this feature. This is the example that I’ve found in documentation, but I’m not really familiar with strace.
docker run --name my-redis -d redis
Debug the redis container by running another container that has strace in it:
$ docker run -it --pid=container:my-redis my_strace_docker_image bash
$ strace -p 1