You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cli.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,8 @@ By default if there are existing containers for a service, `fig up` will stop an
101
101
102
102
Several environment variables can be used to configure Fig's behaviour.
103
103
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
+
104
106
### FIG\_PROJECT\_NAME
105
107
106
108
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
112
114
### DOCKER\_HOST
113
115
114
116
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`.
Copy file name to clipboardExpand all lines: docs/install.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,11 @@ Installing Fig
8
8
9
9
First, install Docker version 1.3 or greater.
10
10
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:
12
12
13
-
$ export DOCKER_HOST=tcp://`boot2docker ip`:2375
13
+
$(boot2docker shellinit)
14
14
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.
16
16
17
17
There are also guides for [Ubuntu](https://docs.docker.com/installation/ubuntulinux/) and [other platforms](https://docs.docker.com/installation/) in Docker’s documentation.
0 commit comments