简体   繁体   English

Windows Server 2016 1607上Windows容器中的Jenkins

[英]Jenkins in windows container on Windows Server 2016 1607

What is the right way to run Jenkins in a windows container on Windows Server 2016 1607. None of the docker images that I pull work, as they appear to be for Linux. 在Windows Server 2016 1607的Windows容器中运行Jenkins的正确方法是什么。我提取的所有docker镜像都无法工作,因为它们似乎适用于Linux。

Or am I missing something very obvious? 还是我错过了一些非常明显的东西?

docker info
Containers: 1
 Running: 0
 Paused: 0
 Stopped: 1
Images: 1
Server Version: 18.09.3
Storage Driver: windowsfilter
 Windows:
Logging Driver: json-file
Plugins:
 Volume: local
 Network: ics l2bridge l2tunnel nat null overlay transparent
 Log: awslogs etwlogs fluentd gelf json-file local logentries splunk syslog
Swarm: inactive
Default Isolation: process
Kernel Version: 10.0 14393 (14393.2248.amd64fre.rs1_release.180427-1804)
Operating System: Windows Server 2016 Datacenter Version 1607 (OS Build 14393.2248)
OSType: windows
Architecture: x86_64
CPUs: 2
Total Memory: 8GiB
Name: banubadkrtst
ID: 37Y5:VMWY:THC3:TYZK:27SA:UZFY:3KXN:CT5M:2QYV:PMZX:NTHZ:XIYC
Docker Root Dir: C:\ProgramData\docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false

Thanks 谢谢

This seems official: https://github.com/jenkinsci/docker/blob/master/README.md 这似乎是官方的: https : //github.com/jenkinsci/docker/blob/master/README.md

Make sure you are using this: https://hub.docker.com/editions/enterprise/docker-ee-server-windows 确保您正在使用此: https : //hub.docker.com/editions/enterprise/docker-ee-server-windows

Lastly, you are using V1 of the registry. 最后,您正在使用注册表的V1。 Use V2: https://docs.docker.com/registry/spec/api/ 使用V2: https//docs.docker.com/registry/spec/api/

According to the following urls: 根据以下网址:

Switch between Windows and Linux containers 在Windows和Linux容器之间切换

From the Docker Desktop for Windows menu, you can toggle which daemon (Linux or Windows) the Docker CLI talks to 从适用于Windows的Docker桌面菜单中,您可以切换Docker CLI与之对话的守护进程(Linux或Windows)

You should be able to use the official jenkins image . 您应该可以使用官方的詹金斯形象 Make sure to enable the correct mode and try to pull the image again. 确保启用正确的模式,然后尝试再次拉出图像。

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

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