host only interface / dynamic IP with fixed hostname#198
host only interface / dynamic IP with fixed hostname#198aheissenberger wants to merge 3 commits into
Conversation
add DOCKER_HOST to .bash_profie add host only ip to /etc/hosts
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
@maelp what system do you use and is your user allowed to sudo? |
|
osX 10.9, it happens just after I do a |
|
can you run it with |
|
@maelp can you try it again with the last patch |
|
@steeve @SvenDowideit do you want to go this way? |
|
@aheissenberger I get |
|
Docker seems to work then, but the command does not open the port 8080 on osX or mount my /tmp folder |
|
@maelp this will only work if you use my modified ISO from my fork which includes the needed changes. nfs client is only available in the master but not in the released ISO |
|
@aheissenberger I downloaded the latest ISO from your release page |
|
@maelp I will do a check - please post any further results here: this is the wrong repository to discuss this |
|
@aheissenberger I don't think so - we really would like to avoid baking nfs / sshfs / smb into boot2docker, as the |
|
Well, as of #224 we do have NFS in boot2docker |
|
Also, SMB ( |
|
@SvenDowideit @steeve we need to find a common ground how shared folders should be handled - this pull request is only about offering a second interface which will allow to use hfs, smb @SvenDowideit how do you think we should implement shared folders? I personally still think this should be done by the docker client/server |
|
@aheissenberger from the talks I've had, sharing local data with the daemon at run time is something that will be implemented in docker itself, but someone needs to work out how to make it work well, and then to write the code :) I do get the feeling that the solution will not be using live mounting ala nfs, but something that can scale to multiple containers, and over bad internet connections - so more like the build time context. (but IAMTM, and my opinion is just that.) |
|
Somebody suggested we mount It also has the plus of being transparent (ie So I propose that |
|
@steeve I have done some more research and think it would be good to add the virtualbox kernel module to the VM. This will allow us to simple read the dynamic IP of the second interface: and adding only the kernerl module should not make the ISO so much bigger: additional this will give us a very nice interface for any kind of data exchange by using |
|
Well, the issue is that boot2docker-cli is on the verge of supporting other providers than VBox (namely VMware and Hyper-V). What happens when we do? I think we need to find a solution that is generic enough. Be it ssh or something else. |
|
I'm pondering this at the moment too - either I need to add a go based ssh-client to boot2docker-cli (so it can be scripted without the user needing to see: very :( ), (We dont' get things like or I go left, far left and add something like a fingerd, that outputs the setting info that we want. @tianon @steeve @aheissenberger can you think of something simpler? |
|
All in all, I'm 👎 for adding VBox modules. |
|
we implemented this in https://github.com/boot2docker/boot2docker-cli - awesome |
REQUIRES BASH to work!
will ask for your docker vm user password if you not placed your public keys in the VM on every start to validate the current IP.
this implements the requirements of #93 except for _not offering a static IP - this allows to have multiple VMs to use the same host only network and talk to each other._