简体   繁体   English

无法启动在 Linux 盒上运行的 Jenkins 控制台

[英]Unable to launch the Jenkins console which is running on Linux box

I just pulled the Jenkins image from docker hub by using below command.我刚刚使用以下命令从 docker 集线器中提取了 Jenkins 图像。

sudo docker pull jenkins

sudo docker run -p 7071:7071 -p 50000:50000 jenkins this command help me to run the jenkins image inside the docker container sudo docker run -p 7071:7071 -p 50000:50000 jenkins this command help me to run the jenkins image inside the docker container 在此处输入图像描述

Now the problem is that I just want to run the Jenkins console to create a some sample test jobs.现在的问题是我只想运行 Jenkins 控制台来创建一些示例测试作业。 When I tried to access this from some windows machine I'm not able to connect and It returned 404 error code.当我试图从一些 windows 机器上访问它时,我无法连接并返回 404 错误代码。

Tried to connect the Jenkins from Windows machine.尝试从 Windows 机器连接 Jenkins。

http://<ip address>:7071  -> this is failing to connect.
http://<ip address>:50000  -> This returning the Jenkins Agent Protocol details

Output: Output:

Jenkins-Agent-Protocols: JNLP-connect, JNLP2-connect, JNLP4-connect, Ping Jenkins-Version: 2.60.3 Jenkins-Session: cba34bd8 Client: XXXXXXXX Server: YYYYYYYY Jenkins-Agent-Protocols:JNLP-connect、JNLP2-connect、JNLP4-connect、Ping Jenkins-版本:2.60.3 Jenkins-Session:cba34bd8 客户端:XXXXXXXX 服务器:YYYYYYYY

Can someone help me since I'm new to docker + jenkins world and want to know how to connect the dockerized jenkins that is hosted in the Linux box. Can someone help me since I'm new to docker + jenkins world and want to know how to connect the dockerized jenkins that is hosted in the Linux box.

Thanks in advance.提前致谢。

The main port used by Jenkins for access via the web console is 8080 and so add: Jenkins 用于通过 web 控制台访问的主要端口是 8080,因此添加:

docker run ... -p 8080:8080

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM