Skip to content

Commit fed391a

Browse files
committed
Update documentation for TLS and boot2docker
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
1 parent 60411e9 commit fed391a

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

docs/cli.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ By default if there are existing containers for a service, `fig up` will stop an
101101

102102
Several environment variables can be used to configure Fig's behaviour.
103103

104+
Variables starting with `DOCKER_` are the same as those used to configure the Docker command-line client. If you're using boot2docker, `$(boot2docker shellinit)` will set them to their correct values.
105+
104106
### FIG\_PROJECT\_NAME
105107

106108
Set the project name, which is prepended to the name of every container started by Fig. Defaults to the `basename` of the current working directory.
@@ -112,3 +114,11 @@ Set the path to the `fig.yml` to use. Defaults to `fig.yml` in the current worki
112114
### DOCKER\_HOST
113115

114116
Set the URL to the docker daemon. Defaults to `unix:///var/run/docker.sock`, as with the docker client.
117+
118+
### DOCKER\_TLS\_VERIFY
119+
120+
When set to anything other than an empty string, enables TLS communication with the daemon.
121+
122+
### DOCKER\_CERT\_PATH
123+
124+
Configure the path to the `ca.pem`, `cert.pem` and `key.pem` files used for TLS verification. Defaults to `~/.docker`.

docs/install.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ Installing Fig
88

99
First, install Docker version 1.3 or greater.
1010

11-
If you're on OS X, you can use the [OS X installer](https://docs.docker.com/installation/mac/). You'll also need to set an environment variable to point at the Boot2Docker virtual machine:
11+
If you're on OS X, you can use the [OS X installer](https://docs.docker.com/installation/mac/) to install both Docker and boot2docker. Once boot2docker is running, set the environment variables that'll configure Docker and Fig to talk to it:
1212

13-
$ export DOCKER_HOST=tcp://`boot2docker ip`:2375
13+
$(boot2docker shellinit)
1414

15-
If you want this to persist across shell sessions, you can add it to your `~/.bashrc` file.
15+
To persist the environment variables across shell sessions, you can add that line to your `~/.bashrc` file.
1616

1717
There are also guides for [Ubuntu](https://docs.docker.com/installation/ubuntulinux/) and [other platforms](https://docs.docker.com/installation/) in Docker’s documentation.
1818

0 commit comments

Comments
 (0)