Skip to content

An easy way to export your docker-machine credentials to another machine

License

Notifications You must be signed in to change notification settings

kevinsimper/docker-machine-export

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-machine-export

This script is used to output your Docker Machine environment variables, including your certificates. This will be useful if you want to control your Docker Machine from another computer.

An example of use is as follows:

docker-machine env swarm-example | docker-machine-export

In this example:

{
  "DOCKER_TLS_VERIFY": "1",
  "DOCKER_HOST": "tcp:\/\/192.168.99.1:2376",
  "DOCKER_CERT_PATH": "(path)\/swarm-example",
  "DOCKER_MACHINE_NAME": "swarm-example",
  "ca.pem": "(base64 encoded ca.pem)",
  "cert.pem": "(base64 encoded cert.pem)",
  "id_rsa": "(base64 encoded id_rsa)",
  "id_rsa.pub": "(base64 encoded id_rsa.pub)",
  "key.pem": "(base64 encoded key.pem)",
  "server-key.pem": "(base64 encoded server-key.pem)",
  "server.pem": "(base64 encoded server.pem)"
}

About

An easy way to export your docker-machine credentials to another machine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published