Find the best tutors and institutes for DevOps Training

Find Best DevOps Training

Please select a Category.

Please select a Locality.

No matching category found.

No matching Locality found.

Outside India?

Search for topics

Use Nexus as Docker Registry

Raghu K
28/03/2018 0 0

There are different tools provides docker registry, and in this tutorial, we want to use Sonatype Nexus Repository Manager as our docker registry, and we will upload our images in there.

I am using the CentOS7 server in google cloud to install Nexus. You may need to change the script based on your requirements. Also as a pre-requisite this script needs SELinux and FIREWALL need to be disabled, In case if you want to run along with those, then you need to modify the scripts as the requirement.

1. Install Nexus Repository.

Run the following command to install Sonatype Nexus Repository Manager, and it starts the service automatically.

Note: Ensure you run the script as root user.

# curl -s | bash

You can view the output as follows.


2. Open the repository over browser with 8081 default port of Nexus.

You can view the web portal of Nexus as follows.


3. Next, navigate as follows and create the repository.

Sign In -> Username & Password (Default username & password : admin / admin123 )

Then click on Settings as shown in the below image.


Then click on Repositories in the left pane and then click on create the repository and then select docker (hosted).

And fill in the details as follows.


Finally, Click on Create repository.

Then the created repository will be shown as below.


4. Let's try to login to nexus repository from docker node.

Add the following configuration to docker.

# cat /etc/docker/daemon.json
"insecure-registries" : ["nexus:9001"]
# systemctl restart docker
You might be execpected the following output.


5. Finally, create an image and push to nexus repo and verify the repository.

# docker tag centos nexus:9001/centos
# docker push nexus:9001/centos
The push refers to a repository [nexus:9001/centos]
e15afa4858b6: Pushed
latest: digest: sha256:7e94d6055269edb455bcfb637292573117e4a8341e9b9abbc09b17d8aafe8fbe size: 529


Hurray. Enjoy :)

0 Dislike
Follow 2

Please Enter a comment


Other Lessons for You

DevOps Maven Lession
################### Maven ####################Maven Index:============1. Introduction To Maven2. Installation3. Architecture4. Default lifecycle5. Directory standards6. GAV7. Test project8....

Vinodh Machi | 16 Mar

0 0

DevOps Git Lession
*********** GIT ************Git Index:==========1. Introduction to git2. Terminology3. Repo4. gitignore5. logs6. Branching7. Merging8. stash9. unstaging(rm, reset, revert)10. Tags11. bisect12. HEAD13....

Vinodh Machi | 16 Mar

0 0

DevOps Git
Removing a file from git staging (index) area. Assume git add sample file => for adding the file to git staging area. Check the git status command Use git rm for removing the content from working...

DevOps Training Course
DevOps Syllabus: DevOps Essentials: What is DevOps? Why DevOps? Evolution of Software Methodologies Dev Challenges v/s DevOps Solution Ops Challenges v/s DevOps Solution Stages Of DevOps Lifecycle...

Continuous Monitoring using Nagios
In today's DevOps related study, people are focusing more on continuous integration, continuous delivery, continuous deployment, continuous build etc. These are all processes and procedures before releasing...

Rituparna M. | 04/10/2017

0 0

Find Best DevOps Training ?

Find Now » is India's largest network of most trusted tutors and institutes. Over 25 lakh students rely on, to fulfill their learning requirements across 1,000+ categories. Using, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 6.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more