Hello Team,
My environment as follows.
Jenkins Version - 2.227.1(LTS).
OS - CentOS - 8.2
SonaType Nexus -
OSS 3.21.2-0.
For the docker private registry purpose as the instructions provided in the below link[1], i have configured. However instead of http i have enabled https using self-signed method using below link[2].
In jenkins i have installed docker plugin and
Manage Jenkins > Configure Systems > Declarative Pipeline (Docker) - Docker registry URL (I have provided our private registry)
Now when i run my declarative pipeline job to pull a public image from dockerhub i am getting below error.
pipeline
{
agent
{
docker
{
image 'ubuntu:latest'
label "jenkins-slave-01"
}
}
------
Still any configuration i need to enable from nexus side? i am not sure why it is going to v2 endpoint.
On build system terminal i am able to login our private registry(nexus & docker hub).