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

How can I do port forwarding? #736

Closed
bytesandwich opened this issue Oct 3, 2016 · 6 comments
Closed

How can I do port forwarding? #736

bytesandwich opened this issue Oct 3, 2016 · 6 comments

Comments

@bytesandwich
Copy link

Expected behavior

I'm forwarding localhost:5000 on my mac from a container running in my kubernetes cluster. I want to push to localhost:5000, after configuring port forwarding on the docker for mac vm, and be able to pull from my k8s cluster.

Actual behavior

I have no way to get the docker for mac vm to forward my mac's port 5000 to the vm's localhost:5000 ?

Steps to reproduce the behavior

  1. run a docker repository somewhere outside your mac
  2. port forward localhost:5000 from that host to your mac
  3. docker tag/push localhost:5000/myfirsttag
@samoht
Copy link
Contributor

samoht commented Oct 10, 2016

We do not support forwarding from the host to the containers yet, but we are working on it. Meanwhile, @justincormack might have a workaround involving socat, I'll let him comment.

@samoht
Copy link
Contributor

samoht commented Jan 31, 2017

Closing in favour of #68. Please subscribe to that issue if you want to be notified on progress.

@samoht samoht closed this as completed Jan 31, 2017
@andrewrynhard
Copy link

@samoht the issue you referenced, is this one. Please update so we can subscribe. Thanks!

@samoht
Copy link
Contributor

samoht commented Jan 31, 2017

woops, updated (it was #68)

@andrey-moor
Copy link

Same issue. How can I pull/push images from/to a private registry available through port forwarding on the host?

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jun 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants