Call out the run command customizations

[ci skip]
This commit is contained in:
Jose Diaz-Gonzalez committed 2015-10-15 21:37:38 -04:00
1 parent e680a70d1a
commit c372f4c054
1 file changed
+2
+2
View File
@@ -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/). 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`: 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`:
``` ```