admin管理员组文章数量:1417686
I am trying to run a Docker container of Apache NiFi 2.0 using HTTP, but I am unable to do so
I have run this command:
docker run -d -p 8081:8081 -e NIFI_WEB_HTTP_PORT=8081 apache/nifi:2.0.0
But every time in logs, I get the following:
INFO [main] .apache.nifi.web.server.JettyServer Started Server on https://18b74a249482:8443/nifi
A few days back, even running docker run -d -P apache/nifi:2.0.0
was working fine, but now it is not
I am trying to run a Docker container of Apache NiFi 2.0 using HTTP, but I am unable to do so
I have run this command:
docker run -d -p 8081:8081 -e NIFI_WEB_HTTP_PORT=8081 apache/nifi:2.0.0
But every time in logs, I get the following:
INFO [main] .apache.nifi.web.server.JettyServer Started Server on https://18b74a249482:8443/nifi
A few days back, even running docker run -d -P apache/nifi:2.0.0
was working fine, but now it is not
1 Answer
Reset to default 0I could not run the NiFi on HTTP, but could run it on HTTPS using the following steps:
- Set
NIFI_WEB_HTTPS_HOST=0.0.0.0
in my Dockerfile as an environment variable - Set
NIFI_REMOTE_INPUT_HOST=0.0.0.0
in my Dockerfile as an environment variable - Set
CMD ["./bin/nifi.sh", "run"]
in my Dockerfile - Created a container using the image (
local_nifi:v2.0.0
) with the commanddocker run -d -p 8443:8443 local_nifi:v2.0.0
- Created an SSH tunnel with my local system (Windows) using
ssh -L 0.0.0.0:8443:127.0.0.1:8443 <user>@<ip>
- Ran
https://localhost:8443/nifi
in my browser and input the generated username and password (rundocker logs <container id> | grep Generated
to acquire the credentials)
本文标签: dockerRunning NiFi 20 using HTTPStack Overflow
版权声明:本文标题:docker - Running NiFi 2.0 using HTTP - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745276113a2651197.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
docker container inspect docker-name
? – silentsudo Commented Feb 3 at 11:15