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?
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.
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).
You must use the "generic" docker-machine driver: https://docs.docker.com/machine/drivers/generic/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With