Currently I can do interactive debugging with
docker-compose run --service-ports web
This is as described in issue #359 . But over time I end up with many containers, as run creates a new one each time.
I would like something like:
docker-compose start --bind web
Something to start all the containers, but be able to do interactive debugging of a specific one.
I'm using pry
You can use docker-compose run --service-ports --rm to remove the container once it exits.
Thanks!
For those reaching this issue from google (docker compose + interactive debugging).
I'm currently debugging using stdin_open: true in docker-compose.yml and when the program reaches binding.pry or embed() or your favorite debugger, I do docker attach containername and get to the debugger.
Most helpful comment
For those reaching this issue from google (docker compose + interactive debugging).
I'm currently debugging using
stdin_open: trueindocker-compose.ymland when the program reachesbinding.pryorembed()or your favorite debugger, I dodocker attach containernameand get to the debugger.