diff --git a/docs/processes/one-off-tasks.md b/docs/processes/one-off-tasks.md index 452b898a7..60ab9844a 100644 --- a/docs/processes/one-off-tasks.md +++ b/docs/processes/one-off-tasks.md @@ -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 ```