-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Add support for the --entrypoint option of docker run #414
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
Conversation
|
Isn't this already supported in fig.yml with 'entrypoint' key? Does this PR intend to make this available on fig CLI? |
|
@salehe Yes, since some images have specified ENTRYPOINT in their Dockerfiles, we cannot always override the command using CMD only. |
|
This is related to #363 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dnephin Thanks for replying. Isn't this a function that return some information about an already running container? What do you mean by "this"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, yes
Signed-off-by: Satoru Logic <satorulogic@gmail.com>
|
@salehe Are you a core developer of fig? |
|
No! I'm just a contributer @suzaku |
|
+1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was intentionally 80 chars wide!
|
Replaced by #511 |
snapshot: Fix leaked mounts and temp directories
We can use
commandinfig.ymlto override the default command, but this won't work if the docker image we are working with specifies aENTRYPOINTfor its containers.In my case, the Dockerfile of the main service has specified something like
["gunicorn", "-c", "config.py"]as itsENTRYPOINT, so I can't do things likepython manage.py syncdbif I can't override theENTRYPOINT.Entrypoints can be overrdden by the
--entrypointoption, this PR attempts to solve the problem by exposing this option infig.