Lucky Container Set-command

Set the containers command.

Usage

set-command [FLAGS] [OPTIONS] [command]...

Flags

ArgEnvironment VariableDescription
-u, --unsetUnset the command instead of setting it. The container will use the default command.

Options

ArgEnvironment VariableDescription
-c, --container<name>The name of the container to update. If not specified the default container will be used

Positionals

ArgEnvironment VariableDescription
<command>The command for the container

Examples

The command args must come after a -- as shown in these examples:

Set command to echo hello:

$ lucky container set-command -- echo hello

Set command to example --arg:

$ lucky container set-command -- example --arg

Set the container entry point and command so that it will tail -f /dev/null:

$ lucky container set-entrypoint tail
$ lucky container set-command -- -f /dev/null