diff --git a/docs/guide/actions.md b/docs/guide/actions.md index 48e9dd24..e13588b1 100644 --- a/docs/guide/actions.md +++ b/docs/guide/actions.md @@ -13,7 +13,7 @@ This feature is **disabled** by default, which can be enabled by setting environ ::: code-group ```sh -docker run -e DOZZLE_ENABLE_ACTIONS=true --volume=/var/run/docker.sock:/var/run/docker.sock -p 8080:8080 amir20/dozzle +docker run --volume=/var/run/docker.sock:/var/run/docker.sock -p 8080:8080 amir20/dozzle --enable-actions ``` ```yaml [docker-compose.yml] diff --git a/main.go b/main.go index 38b317fb..b686db82 100644 --- a/main.go +++ b/main.go @@ -53,7 +53,7 @@ type args struct { Healthcheck *HealthcheckCmd `arg:"subcommand:healthcheck" help:"checks if the server is running."` RemoteHost []string `arg:"env:DOZZLE_REMOTE_HOST,--remote-host,separate" help:"list of hosts to connect remotely"` AuthProvider string `arg:"--auth-provider,env:DOZZLE_AUTH_PROVIDER" default:"none" help:"sets the auth provider to use. Currently only forward-proxy is supported."` - EnableActions bool `arg:"env:DOZZLE_ENABLE_ACTIONS" default:"false" help:"enables essential actions on containers from the web interface."` + EnableActions bool `arg:"--enable-actions,env:DOZZLE_ENABLE_ACTIONS" default:"false" help:"enables essential actions on containers from the web interface."` } type HealthcheckCmd struct {