November 2018
Beginner
230 pages
6h 4m
English
Next, we need to push our new image to a Docker registry. Of course, we could push it to our repo within hub.docker.com, but since we have an application stack that just so happens to have deployed a Docker registry, why don't we utilize it for our Jenkins agent image? First, we need to tag our new image with the registry. Your tag command will differ from mine based on the domain name of your Docker swarm, but for my example, the following is what my tag command looks like:
# Tag the image with our swarm service registrydocker image tag jenkins-agent:latest ubuntu-node01:5000/jenkins-agent:latest
Now that the image is tagged locally, we can push it to the registry with the following command; again, ...
Read now
Unlock full access