Use one's container network from another


Recommended Posts

I've got a Docker Container (let's call it A) running a VPN and would like another container (let's call it B) to use A's network and thus take advantage of the VPN Connection. I managed to get this working using the --net=container:A parameter, however, ports don't seem to work for container B?

Thanks

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.