Fix bugs with entrypoint/command in docker-compose run
- When no command is passed but `--entrypoint` is, set Cmd to `[]` - When command is a single empty string, set Cmd to `[""]` Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
1e60030b94
commit
593d1aeb09
6 changed files with 63 additions and 15 deletions
6
tests/fixtures/entrypoint-composefile/docker-compose.yml
vendored
Normal file
6
tests/fixtures/entrypoint-composefile/docker-compose.yml
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
version: "2"
|
||||
services:
|
||||
test:
|
||||
image: busybox
|
||||
entrypoint: printf
|
||||
command: default args
|
||||
Loading…
Add table
Add a link
Reference in a new issue