So from the target agent machine i pull and modify the github repository and build it locally and run the image locally on the agent host.
When i try to run a job from my jenkins controller targeting the docker agent i get the following error.
com.github.dockerjava.api.exception.NotFoundException: Status 404: {“message”:“manifest for blahBlahBlah
container//image not found: manifest unknown: manifest unknown”}
When i make a modification do i have to register a container on docker hub ?
If you build the image on a different machine not where you run the container then yes. Or at least you need a registry even if it is not Docker Hub. You can also export a local image using docker save and import it on a remote machine using docker load. Check the help for more details: docker save --help
After reading the comments it was stil not clear to me if you run the container where the image was built, but I think @alishah730 was referring to the same possibility as I
Of course you won’T be able to push the image to Docker Hub with this name, sou you would need to change the “owner” part from “jenkins” to an your user. Or add a different private registry to the tag as well.
I am building on the host linux oracleLinux box which will run the oracleLinux9 container.
I am configuring the node on the jenkins controller box.
The test job is on the jenkins controller box also.
This is what is really confusing me I am orchestrating from the controller which calls out to the jenkinsHost hosting the docker container … which was built on that same box.