You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: Arguments to the Entrypoint #4208
In my compose file I have:
my_server:
image: yashgt/proc1:latest
command: "2"
docker-compose up treats the command as the executable. I get an error that says:
ERROR: for my_server Cannot start service my_server: oci runtime error: container_linux.go:247: starting container process caused "exec: "2": executable file not found in $PATH"
There should be a way to retain the entrypoint defined in the dockerfile and only pass a runtime argument to it from the compose file.
Activity
shin- commentedon Dec 2, 2016
Try
command: ["2"]instead.yashgt commentedon Dec 5, 2016
It worked. Thanks.
test: enable unused check, remove dead code (docker#4208)
test: enable unused check, remove dead code (docker#4208)
test: enable unused check, remove dead code (docker#4208)
test: enable unused check, remove dead code (docker#4208)
test: enable unused check, remove dead code (#4208)