Update one-off-processes.md

[ci skip]
This commit is contained in:
Jose Diaz-Gonzalez committed 2016-05-02 12:37:49 -04:00
1 parent 8597b692ee
commit 565cd5c0e8
1 file changed
+3 -1
+3 -1
View File
@@ -32,13 +32,15 @@ dokku --rm-container run node-js-app ls -lah
dokku --rm run node-js-app ls -lah dokku --rm run node-js-app ls -lah
``` ```
Finally, you may wish to run a container in "detached" mode via the `--detach` dokku flag. Note that you may not use the `--rm-container` or `--rm` flags when running containers in detached mode, and attempting to do so will result in the `--detach` flag being ignored. Finally, you may wish to run a container in "detached" mode via the `--detach` dokku flag. Running a process in detached mode will immediately return a `CONTAINER_ID`. It is up to the user to then further manage this container in whatever manner they see fit, as dokku will *not* automatically terminate the container.
```shell ```shell
dokku --detach run node-js-app ls -lah dokku --detach run node-js-app ls -lah
# returns the ID of the new container # returns the ID of the new container
``` ```
> Note that you may not use the `--rm-container` or `--rm` flags when running containers in detached mode, and attempting to do so will result in the `--detach` flag being ignored.
### Using `run` for cron tasks ### Using `run` for cron tasks
You can always use a one-off container to run an application task: You can always use a one-off container to run an application task: