How to pull an ECR image using Docker plugin / Pipeline (Docker BuildSlave)?

232 views
Skip to first unread message

Marco Pas

unread,
Jun 21, 2016, 7:44:48 AM6/21/16
to Jenkins Users
Hi there we are tying to integrate a custom build of a docker Jenkins slave based on https://hub.docker.com/r/evarga/jenkins-slave/
We seem to hit a wall on how to pull these images from ECR into our buildslave nodes.

We have create a Docker Template which needs to pull the image but we cannot seem to get this working.
I guess it has something to do with providing the ECR credentials so the Docker Template can be pulled. But I could be wrong.

Currently when we try to kickoff the job. It just hangs without any feedback on:

[Pipeline] node
Still waiting to schedule task
Waiting for next available executor

When we try to use the default  'evarga/jenkins-slave:latest' the pull is executed immediatly. Any hints on how we can integrate ECR into the pulling of the Docke buildslave images?
We have install the ECR plugin but this gives no help.

Any help is appreciated 

- Marco

Zoratto Thomas

unread,
Jun 21, 2016, 11:55:31 AM6/21/16
to jenkins...@googlegroups.com
Hi,

I believe you cannot specify any credentials with the docker plugin. So if your repository requires authentication (docker hub private repo for example) it won't work. 

You can manually pull this image on the docker host though. Not really a good solution if you ask me
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/c3348ba6-4e2b-496a-982b-bdf0d3a220bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages