How to use the Python debugger inside docker

Author

Steve Harris

Published

July 5, 2022

Question

How to I use the python debugger pdb inside a docker container?

Answer

I got massively stuck trying to debug a python script in a running docker container. On my own machine, I would have just used the Python debugger. This guide shows how to make that work from a running docker container.