Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import existing Docker server to Docker Machine?

I tried docker-machine create -d none --url tcp://<ipaddr>:2376 remote and copied {ca,key,cert}.pem (Client certs) to the machine directory. Then I did eval "$(docker-machine env remote)" which caused this error:

open /Users/uetchy/.docker/machine/machines/remote/server.pem: no such file or directory

I'm confusing why they need the server.pem even if client keys already exist.

How can I avoid to put a critical server.pem onto a local machine?

like image 248
uetchy Avatar asked Jul 29 '15 10:07

uetchy


People also ask

How do I move a docker image from one server to another?

In order to transfer a Docker image from one server to another, what you need to do is first export the image to a file, then copy that file over from your current server to the new one using scp or rsync and finally load the image to your new server.

What is the difference between Docker and Docker machine?

Docker Engine accepts docker commands from the CLI, such as docker run <image>, docker ps to list running containers,docker image ls to list images, and so on. Docker Machine is a tool for provisioning and managing your Dockerized hosts (hosts with Docker Engine on them).


1 Answers

You must use the "generic" docker-machine driver: https://docs.docker.com/machine/drivers/generic/

like image 198
semente Avatar answered Oct 18 '22 02:10

semente