From 7a46c181ad363589af5488588c4574fdd7bac75c Mon Sep 17 00:00:00 2001 From: Ben Firshman Date: Mon, 3 Feb 2014 16:00:23 -0800 Subject: [PATCH] update --- cli.html | 7 ++++++- django.html | 2 +- env.html | 2 +- index.html | 2 +- install.html | 4 ++-- rails.html | 2 +- wordpress.html | 2 +- yml.html | 2 +- 8 files changed, 14 insertions(+), 9 deletions(-) diff --git a/cli.html b/cli.html index 44cd6f77..e64f4bbe 100644 --- a/cli.html +++ b/cli.html @@ -6,7 +6,7 @@ - +
@@ -58,6 +58,11 @@

Note that this will not start any services that the command's service links to. So if, for example, your one-off command talks to your database, you will need to run fig up -d db first.

+

One-off commands are started in new containers with the same config as a normal container for that service, so volumes, links, etc will all be created as expected. The only thing different to a normal container is the command will be overridden with the one specified and no ports will be created in case they collide.

+ +

Links are also created between one-off commands and the other containers for that service so you can do stuff like this:

+
$ fig run db /bin/sh -c "psql -h \$DB_1_PORT_5432_TCP_ADDR -U docker"
+

scale

Set number of containers to run for a service.

diff --git a/django.html b/django.html index 65b99177..15674be4 100644 --- a/django.html +++ b/django.html @@ -6,7 +6,7 @@ - +
diff --git a/env.html b/env.html index 44f3b9a7..b2d3a2e7 100644 --- a/env.html +++ b/env.html @@ -6,7 +6,7 @@ - +
diff --git a/index.html b/index.html index 66ce8c40..bbf9ca53 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ - +
diff --git a/install.html b/install.html index cee59e2a..6aae399d 100644 --- a/install.html +++ b/install.html @@ -6,7 +6,7 @@ - +
@@ -20,7 +20,7 @@

Installing Fig

First, install Docker. If you're on OS X, you can use docker-osx:

-
$ curl https://raw.github.com/noplay/docker-osx/master/docker-osx > /usr/local/bin/docker-osx
+
$ curl https://raw.github.com/noplay/docker-osx/4e929004727f73497da99a8d7ec55b2381ecd74c/docker-osx > /usr/local/bin/docker-osx
 $ chmod +x /usr/local/bin/docker-osx
 $ docker-osx shell
 
diff --git a/rails.html b/rails.html index cdcdc99b..b2f4f9a5 100644 --- a/rails.html +++ b/rails.html @@ -6,7 +6,7 @@ - +
diff --git a/wordpress.html b/wordpress.html index 5544747a..6e9744a8 100644 --- a/wordpress.html +++ b/wordpress.html @@ -6,7 +6,7 @@ - +
diff --git a/yml.html b/yml.html index a9a63a51..347e5c4f 100644 --- a/yml.html +++ b/yml.html @@ -6,7 +6,7 @@ - +