-
Notifications
You must be signed in to change notification settings - Fork 593
Description
"args" is a mandatory parameter of "process" section. This is valid if you use "run" or "create"+"start" commands.
But also, you can run "exec" command before starting a created container. What ever command you put next to 'exec', it's successfully executed with the all the parameters in "process" configuration. This is really useful to run multiple commands in a better control, and I don't HAVE TO use "start" to execute a command.
However I still need to fill "args" even though I will never call "start" command because it is a mandatory parameter. So this feature may mislead users to misuse "start" command for an alternative of "terminate". For instance, if you put a clean up script in "args" and call "start" when you finished your work (using "exec"), the container will be destroyed after cleaning up, which sounds like a nice graceful termination method.
What about making "args" optional, or separating out from "process" as "startingCommand" or something if possible?