Add -w or --workdir to compose run to override workdir from commandline

Signed-off-by: Simon van der Veldt <simon.vanderveldt@gmail.com>
This commit is contained in:
Simon van der Veldt 2016-02-22 21:05:59 +01:00 committed by Daniel Nephin
commit 658803edf8
5 changed files with 30 additions and 0 deletions

View file

@ -26,6 +26,7 @@ Options:
-p, --publish=[] Publish a container's port(s) to the host
--service-ports Run command with the service's ports enabled and mapped to the host.
-T Disable pseudo-tty allocation. By default `docker-compose run` allocates a TTY.
-w, --workdir="" Working directory inside the container
```
Runs a one-time command against a service. For example, the following command starts the `web` service and runs `bash` as its command.