Hey dduportal,
thank you for looking into it. I've done the same steps as you and then it's working for me.
But instead of running the java command inside the container and doing the following, I can reproduce the error:
docker run --rm -ti -v "d:/:d:" jenkins/inbound-agent:jdk11-windowsservercore-ltsc2019 -jnlpUrl http:
While this command it working:
docker run --rm -ti -v "d:/:d:" jenkins/inbound-agent:3071.v7e9b_0dc08466-1-jdk17-windowsservercore-ltsc2019 -jnlpUrl http:
Output:
C:\ProgramData\Jenkins\jenkins-agent.ps1 : A parameter cannot be found that matches parameter name 'jnlpUrl'.
+ CategoryInfo : InvalidArgument: (:) [jenkins-agent.ps1], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : NamedParameterNotFound,jenkins-agent.ps1
When omitting ---volume I got the same output:
docker run --rm -ti jenkins/inbound-agent:jdk11-windowsservercore-ltsc2019 -jnlpUrl http:
So my guess here it's related to the entrypoint script `jenkins-agent.ps1` in the container somehow?
Some extra infos
Operating system: Windows Server 2019 Datacenter Version 1809 (OS Build 17763.3650)
No Docker Desktop
docker info
Client:
Context: default
Debug Mode: false
Server:
Containers: 1
Running: 1
Paused: 0
Stopped: 0
Images: 51
Server Version: 20.10.17
Storage Driver: windowsfilter
Windows:
Logging Driver: json-file
Plugins:
Volume: local
Network: ics internal l2bridge l2tunnel nat null overlay private transparent
Log: awslogs etwlogs fluentd gcplogs gelf json-file local logentries splunk syslog
Swarm: inactive
Default Isolation: process
Kernel Version: 10.0 17763 (17763.1.amd64fre.rs5_release.180914-1434)
Operating System: Windows Server 2019 Datacenter Version 1809 (OS Build 17763.3650)
OSType: windows
Architecture: x86_64
CPUs: 4
Total Memory: 4GiB
Name: xxxxxx
ID: xxxxxx
Docker Root Dir: D:\docker
Debug Mode: false
Registry: https: Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
docker version
Client:
Version: 20.10.17
API version: 1.41
Go version: go1.17.11
Git commit: 100c70180f
Built: Tue Jun 7 02:24:49 2022
OS/Arch: windows/amd64
Context: default
Experimental: true
Server:
Engine:
Version: 20.10.17
API version: 1.41 (minimum version 1.24)
Go version: go1.17.11
Git commit: a89b84221c
Built: Tue Jun 7 02:22:55 2022
OS/Arch: windows/amd64
Experimental: false
Reverted back to 3071.v7e9b_0dc08466-1-jdk17-windowsservercore-ltsc2019 which is working while 3071.v7e9b_0dc08466-5-jdk11-windowsservercore-ltsc2019 is still affected.