docs: remove need to add --

This is done transparently now by Dokku, so no need to have a bc-break
This commit is contained in:
Jose Diaz-Gonzalez
2024-01-18 18:50:32 -05:00
parent 599692446e
commit a90f6bdee8

View File

@@ -30,13 +30,6 @@ dokku run --env "NODE_ENV=development" --env "PATH=/custom/path" node-js-app npm
One off containers are removed at the end of process execution.
If the custom command uses flags, it must be separated from the `dokku enter` command via `--` (double dashes):
```shell
# runs `ls -lah` in the `/app` directory of the app `node-js-app`
dokku run node-js-app -- ls -lah
```
#### Running Procfile commands
The `run` command can also be used to run a command defined in the app `Procfile`:
@@ -66,7 +59,7 @@ dokku --label=com.example.test-label=value run node-js-app ls -lah
One-off containers default to interactive mode where possible. To disable this behavior, specify the `--no-tty` flag:
```shell
dokku run --no-tty node-js-app -- ls -lah
dokku run --no-tty node-js-app ls -lah
```
### Running a detached container
@@ -77,7 +70,7 @@ dokku run --no-tty node-js-app -- ls -lah
Finally, a container can be run in "detached" mode via the `run:detached` Dokku command. Running a process in detached mode will immediately return a `CONTAINER_ID`. Detached containers are run without a tty and are also removed at the end of process execution.
```shell
dokku run:detached node-js-app -- ls -lah
dokku run:detached node-js-app ls -lah
# returns the ID of the new container
```