Lucky Container Set-command
Set the containers command
.
Usage
set-command [FLAGS] [OPTIONS] [command]...
Flags
Arg | Environment Variable | Description |
---|---|---|
-u , --unset | Unset the command instead of setting it. The container will use the default command. |
Options
Arg | Environment Variable | Description |
---|---|---|
-c , --container <name> | The name of the container to update. If not specified the default container will be used |
Positionals
Arg | Environment Variable | Description |
---|---|---|
<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