This is as close to my problem that I can find. I am "new(1 month)" to jenkins. I have an existing pipeline. that pulls a docker image from an insecure repo. We are moving to a secure server. I have copied the images to the new repo. I can pull from the command line and it prompts from username and password and from then on I can pull and push images.
From Jenkins it fails to pull the image.
args "-v /srv/docker-helper/shares/bin/:/opt/pws/mnt/bin -v /srv/docker-helper/shares/cache/:/opt/pws/mnt/cache -v /srv/docker-helper/shares/inject-home.ro/:/opt/pws/mnt/inject-home:ro"
registryCredentialsId 'mig/****** (Jenkins Artifactory user - mig)'
Where "mig/****** (Jenkins Artifactory user - mig)" i the name of a credential in jenkins.
+ docker inspect -f . mig
Error: No such object: mig
+ docker inspect -f . af01p.devtools.tst:6560/mig
Error: No such object: af01p.devtools.tst:6560/mig
+ docker pull af01p.devtools.tst:6560/mig
Using default tag: latest
Error response from daemon: unauthorized: The client does not have permission for manifest
[Pipeline] // withDockerRegistry