[英]How to run Jenkins Docker image/container success?
I am using Windows 11 pro x64, Docker 4.12.0 (85629).我正在使用 Windows 11 pro x64、Docker 4.12.0 (85629)。 I follow guide at https://www.jenkins.io/doc/book/installing/docker/#on-windows
我遵循https://www.jenkins.io/doc/book/installing/docker/#on-windows的指南
docker run --name jenkins-docker --rm --detach ^
--privileged ^
--env DOCKER_TLS_CERTDIR=/certs ^
--volume jenkins-docker-certs:/certs/client ^
--volume jenkins-data:/var/jenkins_home ^
--publish 2376:2376 ^
docker:dind
Docker container log https://gist.github.com/donhuvy/ec283a3835016abe5329e3e0531099a1 Docker 容器日志https://gist.github.com/donhuvy/ec283a383e35016abe90a29e
How to run Jenkins Docker image/container success?如何运行 Jenkins Docker 图像/容器成功?
Update: If delete previous container, then I run更新:如果删除以前的容器,那么我运行
docker run --name vyjenkins -p 2376:2376 jenkins/jenkins
I go to https://localhost:2376/, it also still did not work.我从 go 到 https://localhost:2376/,它仍然没有工作。
The document was wrong.文件有误。 Run command like this
像这样运行命令
docker run -p 8080:8080 -p 50000:50000 -v D:\vyjenkins:/var/jenkins_home jenkins/jenkins:lts
Go to http://localhost:8080/, use auto-generated password like this dce5c97f3ac14d99a8fd2d32127ced9c
. Go 到 http://localhost:8080/,使用自动生成的密码,例如
dce5c97f3ac14d99a8fd2d32127ced9c
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.