Skip to content

ambiguous relationship between "exec" command and "process" section #561

@ianpark

Description

@ianpark

"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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions