From c372f4c0543c587ef0218e6fa07cb5613727f6d5 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Thu, 15 Oct 2015 21:37:34 -0400 Subject: [PATCH] Call out the run command customizations [ci skip] --- docs/deployment/dockerfiles.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/deployment/dockerfiles.md b/docs/deployment/dockerfiles.md index 2d7abae7c..d7564a784 100644 --- a/docs/deployment/dockerfiles.md +++ b/docs/deployment/dockerfiles.md @@ -20,6 +20,8 @@ dokku config:set APP DOKKU_DOCKERFILE_PORT=8000 Dokku will not expose other ports on your application without a [custom docker-option](/dokku/configuration/docker-options/). +## Customizing the run command + By default no arguments are passed to `docker run` when deploying the container and the `CMD` or `ENTRYPOINT` defined in the `Dockerfile` are executed. You can take advantage of docker ability of overriding the `CMD` or passing parameters to your `ENTRYPOINT` setting `$DOKKU_DOCKERFILE_START_CMD`. Let's say for example you are deploying a base nodejs image, with the following `ENTRYPOINT`: ```