From 1da6cd6b3c5301aa52c23fffba74d202964b640a Mon Sep 17 00:00:00 2001 From: Ethan Sherbondy Date: Mon, 11 May 2015 20:59:37 -0400 Subject: [PATCH] Update docker-options.md My changes may not be quite correct, but as far as I can tell, DOCKER_OPTIONS now requires specifying a phase explicitly. Also updated references to `--link` since `-link` has been deprecated in Docker. --- docs/docker-options.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/docker-options.md b/docs/docker-options.md index 730d64914..6cd4a6377 100644 --- a/docs/docker-options.md +++ b/docs/docker-options.md @@ -19,40 +19,40 @@ Add some options ```bash $ dokku docker-options:add myapp deploy "-v /host/path:/container/path" $ dokku docker-options:add myapp run "-v /another/container/path" -$ dokku docker-options:add myapp "-link container_name:alias" ``` Check what we added ```bash $ dokku docker-options myapp --link container_name:alias --v /host/path:/container/path --v /another/container/path +Run options: + --link container_name:alias + -v /host/path:/container/path + -v /another/container/path ``` Remove an option ```bash -$ dokku docker-options:remove myapp "-link container_name:alias" +$ dokku docker-options:remove myapp run "--link container_name:alias" ``` Advanced Usage (avoid if possible) ------------ -In your applications folder (/home/dokku/app_name) create a file called DOCKER_OPTIONS. +In your applications folder (/home/dokku/app_name) create a file called DOCKER_OPTIONS_RUN (or DOCKER_OPTIONS_BUILD or DOCKER_OPTIONS_DEPLOY). Inside this file list one docker option per line. For example: ```bash --link container_name:alias +--link container_name:alias -v /host/path:/container/path -v /another/container/path ``` -The above example will result in the following options being passed to docker during deploy and docker run: +The above example will result in the following options being passed to docker during docker run: ```bash --link container_name:alias -v /host/path:/container/path -v /another/container/path +--link container_name:alias -v /host/path:/container/path -v /another/container/path ``` You may also include comments (lines beginning with a #) and blank lines in the DOCKER_OPTIONS file.