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

Passing args to ENTRYPOINT script #27

Open
oleks-popovych opened this issue Sep 27, 2021 · 0 comments
Open

Passing args to ENTRYPOINT script #27

oleks-popovych opened this issue Sep 27, 2021 · 0 comments

Comments

@oleks-popovych
Copy link

So I'd like to know is there is a way, to pass arguments to entrypoint script inside docker image?

My usecase.

I have my Dockerfile ending line this

...
ENTRYPOINT ["/bin/bash", "entrypoint.sh"]

entrypoint.sh - takes several arguments to make its work.

I've expected that somehow I could pass script's arguments as I would do in conventional docker container run

docker container run [OPTIONS] IMAGE [COMMAND] [ARG...]
docker container run -v ... my_image:latest --script_args1=value1

But it seems it is impossible?

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

1 participant