Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins Declarative Pipeline Docker Registry

How can one set the Pipeline so that Docker will pull images from a local registry?

like image 586
bearrito Avatar asked May 26 '17 16:05

bearrito


1 Answers

Found on a user mailing list post but I did not see this in the official docs.

For posterity sake here is the answer from the link

agent {
  docker {
    image "image name"
    registryUrl "https://wherever"
    registryCredentialsId "credsId"
  }
}

I tested this works with the most up to date plugin at time of writing.

like image 94
bearrito Avatar answered Nov 08 '22 20:11

bearrito