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
Cannot publish a container's port(s) to the host with --net option. #16765
Comments
Hi! Please read this important information about creating issues. If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead. If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information. This is an automated, informational response. Thank you. For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues BUG REPORT INFORMATIONUse the commands below to provide key information from your environment:
Provide additional environment details (AWS, VirtualBox, physical, etc.): List the steps to reproduce the issue: Describe the results you received: Describe the results you expected: Provide additional info you think is important: ----------END REPORT --------- #ENEEDMOREINFO |
When using --net=container you have to publish ports from the container On Mon, Oct 5, 2015 at 8:05 AM, Bear Huang notifications@github.com wrote:
|
Sorry, I missed uname -a: So, I cannot publish any additional ports when using --net option? Would this be possible a new feature? |
My issues was closed "working as intended", though I disagreed. On Mon, Oct 5, 2015 at 8:22 AM, Bear Huang notifications@github.com wrote:
|
I'm also on same issue and quite disappointed. I'll outline my case and maybe it would make any sense: I need to set up a build server which fetches sources over VPN connection. For some reasons I cannot (or don't want) to install VPN client on host. So my intention was to have a Is there an 'intended' way to achieving this in docker? |
When I run
docker run -p 8000:8000 --net=container:81cc21830839 centos /bin/bash
it won't publish 8000 to host, nor --net=host.
docker version
docker info
The text was updated successfully, but these errors were encountered: