mirror of
https://github.com/docker/compose.git
synced 2026-08-28 04:18:05 +00:00
Add envFile arguments to run command
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
This commit is contained in:
parent
4f48318332
commit
2e899202ec
6 changed files with 42 additions and 1 deletions
1
cli/cmd/run/testdata/run-help.golden
vendored
1
cli/cmd/run/testdata/run-help.golden
vendored
|
|
@ -8,6 +8,7 @@ Flags:
|
|||
-d, --detach Run container in background and print container ID
|
||||
--domainname string Container NIS domain name
|
||||
-e, --env stringArray Set environment variables
|
||||
--envFile stringArray Path to environment files to be translated as environment variables
|
||||
-l, --label stringArray Set meta data on a container
|
||||
-m, --memory bytes Memory limit
|
||||
--name string Assign a name to the container
|
||||
|
|
|
|||
2
cli/cmd/run/testdata/runtest1.env
vendored
Normal file
2
cli/cmd/run/testdata/runtest1.env
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
FIRST_VAR="firstValue"
|
||||
SECOND_VAR=secondValue
|
||||
2
cli/cmd/run/testdata/runtest2.env
vendored
Normal file
2
cli/cmd/run/testdata/runtest2.env
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
THIRD_VAR=2
|
||||
FOURTH_VAR=fourthValue
|
||||
Loading…
Add table
Add a link
Reference in a new issue