Skip to content

Commit

Permalink
provider/docker: Add alternative to cert_path
Browse files Browse the repository at this point in the history
Add a note about using `eval $(docker-machine env)` when using Docker
Machine to avoid having to hard code a certificate path.
  • Loading branch information
jen20 committed Sep 21, 2016
1 parent 1b6c1cc commit c942707
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion website/source/docs/providers/docker/index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,10 @@ The following arguments are supported:
for connecting to the Docker host via TLS. If this is blank, the
`DOCKER_CERT_PATH` will also be checked.

Note: As per [Docker Remote API documentation](https://docs.docker.com/engine/reference/api/docker_remote_api/), in any docker-machine environment, the Docker daemon uses an encrypted TCP socket (TLS) and requires `cert_path` for a successful connection.
~> **NOTE on Certificates and `docker-machine`:** As per [Docker Remote API
documentation](https://docs.docker.com/engine/reference/api/docker_remote_api/),
in any docker-machine environment, the Docker daemon uses an encrypted TCP
socket (TLS) and requires `cert_path` for a successful connection. As an alternative,
if using `docker-machine`, run `eval $(docker-machine env <machine-name>)` prior
to running Terraform, and the host and certificate path will be extracted from
the environment.

0 comments on commit c942707

Please sign in to comment.