-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Splitting the CMD in the Dockerfile into an ENTRYPOINT and CMD would give an more intuitive CLI. For example, this Dockerfile:
ENTRYPOINT ["/mws/bin/mwsd"]
CMD ["-p", "8080", "-I", "/data"]would allow to directly interact with the mwsd binary:
docker run mathwebsearchto runmwsdon port 8080 with the harvest in/data(like at the moment)docker run mathwebsearch --helpto runmwsd --helpdocker run mathwebsearch -p 8888 -I /myDatato runmwsdon port 8888 with the harvest in/myData
(Not sure if the CMD part should also be moved to the ENTRYPOINT as defaults - probably depends on the implementation. That is, how does it handle two -p and -I options?)
For a more detailed explanation, see https://stackoverflow.com/questions/21553353/what-is-the-difference-between-cmd-and-entrypoint-in-a-dockerfile
Metadata
Metadata
Assignees
Labels
No labels