Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container method should let the container connect to the host (e.g., for a debugger) #1022

ark3 opened this issue Apr 30, 2019 · 3 comments


Copy link

commented Apr 30, 2019

Many (most?) debugger setups expect the debugger to connect to the running process, for example as described in the Local development with Java tutorial. However, there are few that want things to go the other way around, i.e. the process wants to connect to the debugger. Examples include the PyCharm remote debug server and the DBG PHP debugger. For these cases, it would be useful to let the user specify one or more ports to forward to the host machine.


  • Include an /etc/hosts entry for host.docker.internal that points to a routable address that actually reaches the host (name already set up on Docker for Mac) — need to tweak the sshuttle command to allow this
  • Offer an option to forward specific localhost ports to the host machine, which Tel can do using ssh port forwarding as always

This comment has been minimized.

Copy link

commented Sep 9, 2019

Hi @ark3 I'm commenting here instead of #1065 although I'm experiencing the exact same scenario, wanting to use xdebug with telepresence. (Specifically --new-deployment or --swap-deployment with the --docker-run flag)

I'm pretty comfortable working in Python, but am having a bit of a rough time figuring out exactly how the sshuttle command is getting built in the proxy container. I'm happy to help work on this issue though if someone has time to help me get my head wrapped around it!

Cheers, Sol


This comment has been minimized.

Copy link

commented Sep 16, 2019

Are there any workarounds we can use in the meantime? Eg when using docker method add additional networks to a container?


This comment has been minimized.

Copy link
Contributor Author

commented Sep 27, 2019

Fixed in #1132

@ark3 ark3 closed this Sep 27, 2019
Tel Tracker automation moved this from To do to Done Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.