Skip to content

Instantly share code, notes, and snippets.

@radist2s
Last active December 18, 2020 11:39
Show Gist options
  • Save radist2s/2f0a3b933328a6e3498a4e4909f5f4c6 to your computer and use it in GitHub Desktop.
Save radist2s/2f0a3b933328a6e3498a4e4909f5f4c6 to your computer and use it in GitHub Desktop.
docker-machine cheatsheet

Retrieving mahine configuration

docker-machine config

Executing Docker command

docker \
-H=tcp://192.168.1.1:2376 \
--tlsverify \
--tlscacert="[USER_HOME]/.docker/machine/machines/default/ca.pem" \
--tlscert="[USER_HOME]/.docker/machine/machines/default/cert.pem" \
--tlskey="[USER_HOME]/.docker/machine/machines/default/key.pem" \
ps

Alternatively you may run eval $(docker-machine env) and use docker or docker-compose as usually

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment