Docker Hub:-
Docker Hub is a registry service on the cloud that allows you to
download Docker images that are built by other communities. You can also upload
your own Docker built images to Docker hub. In this chapter, we will see how to
download and the use the Jenkins Docker image from Docker hub.
Step 1: First you need to do a simple sign-up on
Docker hub.
Step 2: Once you have signed up, you will be logged
into Docker Hub.
Step 3: Next,
let’s browse and find the Jenkins image.
Step 4: If you scroll down on the same page, you can
see the Docker pull command. This will be used to download the Jenkins
image onto the local Ubuntu server.
Step 5: Now, go to the Ubuntu server and run the
following command:
#sudo docker pull
jenkins
To run Jenkins, you
need to run the following command:
#sudo docker run
-p 8080:8080 -p 50000:50000 jenkins
- Note the following points about the above sudo command:
- We are using the sudo command to ensure it runs with root access
- Here, jenkins is the name of the image we want to download from Docker hub and install on our Ubuntu machine.
- -p is used to map the port number of the internal Docker image to our main Ubuntu server so that we can access the container accordingly.
- You will then have
Jenkins successfully running as a container on the Ubuntu machine.
Reference
Thank you for posting the valuable Content.
ReplyDeleteDevOps Online Training
This is really great informative blog. Keep sharing.
ReplyDeleteDocker and Kubernetes Training
Well written .Keep updating Devops Online Training
ReplyDeleteNice Article!! Thanks for sharing...
ReplyDeleteKubernetes Online Training
Kubernetes Training in Hyderabad
Best Docker and kubernetes training in ameerpet
Docker and Kubernetes Training in Hyderabad
Thanks for sharing such a wonderful blog !
ReplyDeleteDocker Training in Hyderabad
Docker and Kubernetes Online Training
Docker Training
Thankyou!! This is very helpfull Blog..
ReplyDeleteE- Learning Training Portal
Portal- ELearning
https://saglamproxy.com
ReplyDeletemetin2 proxy
proxy satın al
knight online proxy
mobil proxy satın al
D4UXN5