Skip to content

Instantly share code, notes, and snippets.

@vovimayhem
Last active September 12, 2016 17:27
Show Gist options
  • Save vovimayhem/1a727a390bd03d5bf546c40c3a67eac7 to your computer and use it in GitHub Desktop.
Save vovimayhem/1a727a390bd03d5bf546c40c3a67eac7 to your computer and use it in GitHub Desktop.
A convenient way to set the env vars to configure a Docker Client access to a secure remote Docker Engine
# Make sure you have this file in a folder along with your certs.
# Also, keep in mind that the filenames must follow the convention:
# - Certificate Authority Certificate must be named "ca.pem"
# - Client Certificate must be named "cert.pem"
# - Client Key must be named "key.pem"
#
# Run with `source env.sh`
export DOCKER_TLS_VERIFY=1
export DOCKER_CERT_PATH="$(pwd)"
export DOCKER_HOST=tcp://your-host-name:2376
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment