Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Arguments to the Entrypoint #4208

Closed
yashgt opened this issue Dec 1, 2016 · 2 comments
Closed

Feature request: Arguments to the Entrypoint #4208

yashgt opened this issue Dec 1, 2016 · 2 comments

Comments

@yashgt
Copy link

yashgt commented Dec 1, 2016

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.

@shin-
Copy link

shin- commented Dec 2, 2016

Try command: ["2"] instead.

@yashgt
Copy link
Author

yashgt commented Dec 5, 2016

It worked. Thanks.

@yashgt yashgt closed this as completed Dec 5, 2016
ndeloof pushed a commit to ndeloof/compose that referenced this issue Jan 30, 2023
ndeloof pushed a commit to ndeloof/compose that referenced this issue Jan 30, 2023
ndeloof pushed a commit to ndeloof/compose that referenced this issue Jan 31, 2023
ndeloof pushed a commit to ndeloof/compose that referenced this issue Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants