[
https://issues.apache.org/jira/browse/NIFI-4824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16347427#comment-16347427
]
ASF GitHub Bot commented on NIFI-4824:
--------------------------------------
Github user jdye64 commented on a diff in the pull request:
https://github.com/apache/nifi/pull/2439#discussion_r165158617
--- Diff: nifi-docker/dockerhub/README.md ---
@@ -46,12 +46,22 @@ The configuration scripts are suitable for at least
1.4.0+.
The minimum to run a NiFi instance is as follows:
docker run --name nifi \
- -p 18080:8080 \
+ -p 8080:8080 \
-d \
apache/nifi:latest
-This will provide a running instance, exposing the instance UI to the host
system on at port 18080,
-viewable at `http://localhost:18080/nifi`.
+This will provide a running instance, exposing the instance UI to the host
system on at port 8080,
+viewable at `http://localhost:8080/nifi`.
+
+You can also pass in environment variables to change the NiFi
communication ports and hostname using the Docker '-e' switch as follows:
+
+ docker run --name nifi \
+ -p 9090:9090 \
+ -d \
+ -e NIFI_WEB_HTTP_PORT='9090'
+ apache/nifi:latest
+
+For a list of the environment variables recognised in this build, look
into the .sh/secure.sh and .sh/start.sh scripts
--- End diff --
Enjoy the English touch with "recognised" instead of "recognized" =)
> Dockerhub Image - allow user to specific host ports on startup
> --------------------------------------------------------------
>
> Key: NIFI-4824
> URL: https://issues.apache.org/jira/browse/NIFI-4824
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Docker
> Affects Versions: 1.2.0, 2.0.0, 1.3.0, 1.4.0, 1.5.0, 1.6.0
> Reporter: Daniel Chaffelson
> Priority: Critical
>
> As a user of the official apache/nifi Docker image, I would like to be able
> to easily pass in the ports I want NiFi to start on. This is particularly
> important since the 1.5.0 release, where remapping ports outside the
> container cause NiFi to throw a security error.
> This will be particularly useful in NiFI-1.5.0 and newer, where users are
> often running multiple instances of the same version in order to test Flow
> Versioning and other new features around the NiFi-Registry project.
> This can be done by slightly modifying the startup scripts included in the
> package to use an environment variable if available, or a default if it is
> not provided. It is then very easy to pass an environment variable to the
> Docker image on startup.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)