Can't type in ipdb console in docker container

I’m using docker-compose to build my docker container and am running the container with the --service-ports flag like so:

docker-compose run --service-ports $(service_name) -d

When trying to call ipdb within a python script in the container using import ipdb; ipdb.set_trace() ipdb is initialised but I cannot type anything in the console. I also have to manually restart the terminal session in order to stop it (CTRL+C, CTRL+D etc do nothing). It’s not as if the terminal has frozen either as I can still scroll back and on focus / unfocus the cursor changes appearance too.

  • How do I execute commands on Karaf running inside Docker?
  • Jenkins not able to access internet when running as docker container
  • Deploying an Angular app using Docker/Dokku
  • Sharing precompiled assets across docker containers
  • Setting up Docker Postgres inside Python container
  • Docker pull is not giving real time downloaded-size/total-size when executed through Node.js child process sync
  • This is what my term looks like (I use iTerm):
    enter image description here

    Any ideas how to fix this?

  • docker-compose: Service 'web' failed to build
  • On Docker for Mac what would be the host ip as seen from the container? [duplicate]
  • Sharing a Docker container directory which serves as a mount point
  • Jenkins deploying war file to tomcat docker container
  • running docker from gradle: cannot pull image
  • How do I install RabbitMQ-server on Jessie in Docker?
  • One Solution collect form web for “Can't type in ipdb console in docker container”

    Turns out it boils down to ipdb not being compatible with eventlet.monkey_patch in the docker container.

    Simple fix, switch to pdbpp 😀

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.