Hey guys, I wrote a docker cli tool named docker-debug to help debugging docker container.
`docker-debug` runs a new container(the "debug container") in the running container. The new container will join the `pid`, `network`, `user`, `filesystem` and `ipc` namespaces of the target container, so you can use arbitrary trouble-shooting tools without pre-install them in your production container image.
Project link: [docker-debug](https://github.com/zeromake/docker-debug). In addition, I am new to opensource and I really need advices and feedbacks from you guys! Feel free to post a question or PM me if you get in trouble when trying the project. Criticism is always welcome, too
5 thoughts on “I wrote a tool to debug docker container more easily”
I often end up execing into nonprod containers, apt getting debugging tools, and going from there.
This will be very useful!
Could you use this to debug processes running inside the container, too?
Edit: I mean inside the production container, not the new debug container.
Nice! I believe there is another tool which does a similar job and may be worth comparing: https://github.com/oracle/crashcart
Some examples of the usage (what kind of debugging and what kind of debugging tools) would be great.
Yooo this looks sweet. I would love to see this made kubernetes aware so you can target a pod and it just jumps on the right machine and pops you into a running pod.