boot2docker / Forward all dynamic assigned ports#73
boot2docker / Forward all dynamic assigned ports#73aheissenberger wants to merge 1 commit intoboot2docker:masterfrom
Conversation
|
👍 |
|
mmm, this is complicated for me - I have a docker running on my host, and then use boot2docker to test other things - so hardcoding a thousand ports doesn't feel right |
|
the best solution would be a docker wraper which will handle this by parsing the docker command line options and will dynamical set the ports to be forwarded - a similar solution will be needed for shared folders |
|
Look at #93 It add an host only interface, so you have a dedicated ip for the boot2docker and won't have to setup any nat rules nor wrap anything It stays simple and compatible with current solution |
|
I have looked at your code and have also played with this solution but my understanding of this project was to expose as less as possible from the embedded system. My current solution #104 does all the port forward mapping automaticly :-) Using NFS I have to use the second host only interface too but I hope this gets solved with the 9fs files system. |
|
I would love to see #93 happen. The project may want to keep it minimal, but a big part of the docker effort is to allow auto assigned ports like: 0.0.0.0:49157->11211/tcp, 0.0.0.0:49158->22/tcp, 0.0.0.0:49159->3306/tcp, 0.0.0.0:49160->80/tcp. Sure would be nice to have @moul's work implemented so i could just go to secondary interface ip:auto port after a docker run. #104 moves things away from native os-x support, not towards it. If you're going to run commands inside the VM, might as well just use a vagrant :-/ |
|
So is there still further development work to be done here or is it just pending merge? I created a script called boot2docker-fwd that lets you create specific custom forwards or the brute force method described above: |
|
@deinspanjer this project will not provide this feature |
|
@deinspanjer please check out the boot2docker-cli repo |
|
Okay, I asked because the feedback was mostly positive and the PR was still open. If it won't be incorporated, but the PR just hasn't been closed yet, that is fine. |
|
Don't get @aheissenberger wrong. As far as I know this feature request is still on the table but will be solved within the https://github.com/boot2docker/boot2docker-cli repo. Is that correct @steeve? |
|
Spot on @schickling. |
|
avoiding the issue using the host-onlly network interface in http://github.com/boot2docker/boot2docker-cli |
this is similar to the docker vagrant setup
https://github.com/dotcloud/docker/blob/master/Vagrantfile#L171