I have installed Jenkins and docker in same machine Ubuntu.
- Ubuntu 17.10
- Jenkins ver. 2.73.3
- Docker version 17.09.0-ce.
I am trying to set up jenkin docker containers as slaves for running my automation test suite.
I was able to correctly, setup the docker plugin in Jenkins for spinning up docker containers and added a docker template with a image that i created for setting up docker enviroment.
The image has been built on docker hosted in Ubuntu.
Problem is now when i run a job from Jenkins. It gives a error message (pending—Jenkins doesn’t have label docker-slave)
When I check the Jenkins logs in Ubuntu machine I see the following error message
com.github.dockerjava.api.exception.NotFoundException: {"message":"pull access
denied, "message":may require 'docker login'"}
In the ubuntu machine, i have already given done docker login.
The image that i am trying to build containers from is locally on ubuntu, not pushed to any repository, so why is trying to pull the image.
Also, what is the permission issue that i need to resolve. When build a job, from jenkins, its the jenkins user building the container. Do I need to add something else there.