-
Notifications
You must be signed in to change notification settings - Fork 2k
Export / import machines #23
Comments
What's the gain on this one? The goal of using machine from my perspective is to set up a simple machine with docker on it (no fancy stuff or custom things). With that in mind creating or export->importing a machine is exactly the same and does not give me any benefit. |
When you create a machine, you can only use it and manage it from a single computer. You might want to:
|
Should we have a |
What exactly will the saved file contain? i.e.; Will it contain the token for connecting to the daemon? Ideally, there should be something to manage computers/people to have access to the host. Thinking along the lines of a one-time token that can be to connect a new computer to an existing host. |
@bfirsh @waitingkuo This seems like a really useful feature that we'd use at Rancher (we'd like to use machine server-side). Any reason the implementation (#29) seems to have stalled. Anything I could do to attempt to hep? |
+1 would be awesome |
+1 |
+1 |
1 similar comment
+1 |
We have create a tool that we use ourselves, to make it easy to export docker-machines. It basicly exports all the certificates ssh keys. Feedback is welcome! https://github.com/blackbeardapp/docker-machine-export |
might be an overkill but something like a docker-machine registry would be awesome! |
Currently we are using a git repo for sharing docker settings, problem is that some of us have virtualbox machines and thats the down-side |
@kevinsimper how do you import them back? |
Does this issue include the idea of sharing swarm clusters between developers? |
@saada I think it only covers credentials sharing, not cluster config. |
+1 |
I am looking after the capability to share machine between users in the same hosts. |
+1 |
5 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
We're using a docker container for this task - what else 😄 The idea is also to have the same environment (eg. cert configuration paths) for all users, mounted as a host-volume. You can use |
+1 |
I'm not sure my use-case is the same as others - I've created a couple different machines for different purposes and I want to back up their existence and (minor) configuration. I'd rather just have some simple text files which are used to recreate the boxes. https://www.npmjs.com/package/machine-share doesn't seem to respect my MACHINE_STORAGE_PATH. schickling's script backs up couple large binary files (e.g., boot2docker.iso). https://www.npmjs.com/package/@mumbacloud/dmport threw a couple errors. |
We also want this functionality, we've created a machine on gcloud using docker-machine for development and I want to allow my coworker to exec into the container and view the logs. |
I'm actually surprised this isn't supported already. My example is I created a docker swarm cluster in Azure from my laptop (without thinking this all the way through) and now I want other devs to be able to manage the cluster so I created a shared VM in Azure that everyone can share. I installed docker-machine and now I need a way to import the machines from my laptop to our jump box in Azure. |
@jcrben Hi, what about posting a full issue on machine-share, regarding the MACHINE_STORAGE_PATH? I recently reviewed bhurlow's work, and I am curious to see if something breaks |
@jcrben Did you also try https://github.com/dmstr/docker-roj? ... I am just curios. |
People, for the love of all things proper, please 👍 the OP and not as a discrete comment. "+1" spam distracts from the conversation. |
FYI: #3212 |
@lnshi I think that the problem with importing an existing docker server with |
@pedrodevoto I know, I just mentioned that issues, since ppl have discussed there a lot. |
@ntwrkguru still, it makes issue relevant and alive. There's no notification on emojis. |
This issue is nearly 4 years old, I doubt that a few more +1 comments will suddenly cause it to become a priority. |
@ntwrkguru As long as the docker devs sort issues by 👍, it should be on their radar. It's the second-most upvoted issue at the moment. So keeping the 👍 coming will make sure that it stays on top. Now, I don't know how the docker team prioritises issues, but I bet they also have paying customers, which I bet will always come first before looking at the public community feature requests. |
The same: #1328 ? I am just getting used to docker and built my first host using docker-machine. Now one day later, I am trying to connect to my docker host using a different workstation... Surprised to see that that's no possible, at least not without some major headaches. Seems like an essential feature to allow teams to manage hosts... |
That's because docker-machine was never designed to be a team tool. It's mean for an individual to easily create VM's that auto-install docker and setup dockerd TLS certs for remote cli management. If you're trying to build and deploy docker environments for teams, you likely want to use a different tool. |
@BretFisher and what tools would that be? Not that I am wanting to use it for teams, just from 3 different workstations... |
One of the big benefits of docker-machine is that it sets up TLS on the docker engine for remote cli management. Today Docker Engine 18.09 was released and with it a great new feature that allows remote cli management using SSH tunneling (of sorts) and is a much better approach IMO for those of us without the need for full of docker engine RBAC. For those using docker-machine simply to make remote management easier, I recommend checking this out in 18.09. Both your docker server and client need to be on 18.09, and as long as you can SSH in, you can use the cli remotely. Docker Captain Luc Juggery has a quick write-up on this. I expect it'll become my default way to use docker remotely. |
I get what you're saying @BretFisher, but it would be nice to have it in docker-machine, since it keeps track of the remotes anyway. If i'm going to manage them over SSH, then I likely won't even bother using docker-machine to deploy them, and instead use Ansible. Docker-machine is yet another tool that could be great, but is relegated to mediocre due to lack of development. |
@adilinden for a single user options include:
|
@BretFisher I really like #2, it seems the best option by far for my scenario as all the knobs and buttons are in place for that already. Switching hosts looks trivial as well, as it is simply setting a single environment variable. Now just to figure out how to get Docker for Mac to 18.09 instead 18.06.1-ce-mac73 (26764). |
@ntwrkguru docker-machine is great for one-off machines or personal setups or someone who maybe only needs ~10 servers max, but if you've ever tried to manage 10+ servers with it, you'll see its limits right away. I wouldn't say that's due to lack of development, but rather "not within scope" of the tools original goals. On the SSH, you wouldn't use ansible in this case, what I'm saying is once you've deployed any docker server (ansible or otherwise) that runs 18.09+, as long as you have SSH permission to that server, you can now do something like:
For controlling that engine remotely without any special config or setup. Being able to export an envvar and then run a bunch of commands against that engine (without wrapping them in ansible, etc.) is very handy. |
@adilinden the Linux release just dropped today, so you'll need to give the teams a few days or week to roll out all the downstream products that use it :). If you want it today, use the edge release which has the 18.09 beta and works fine for me on Mac. |
Admittedly, I haven't messed with docker-machine in several years. I have 4 servers left running plain Docker engine. So, what's the benefit between [edit] Not being argumentative; I'm wondering if there's a clear benefit. |
@ntwrkguru I can build from a Docker file on my workstation using the |
Just for information, can also use ssh for socket forwarding. Per https://medium.com/@dperny/forwarding-the-docker-socket-over-ssh-e6567cfab160, but with a slight modification. In one terminal session run
In another run
or
|
I had the same issue and I created shell scripts to do the backup and the restore: Only the really needed data is backed up. For instance no iso files are inside of the backup. |
Something like this should work for transferring machines:
(Maybe we could use
machine inspect
?)The text was updated successfully, but these errors were encountered: