Nexus 3 is one of the popular binary repository managers. It can be also
used to store Docker images as well besides storing binaries such as
WARs, EARs, Jars, DLLs and Exes.
Let us see how to configure Nexus to host as private Docker registry.
Pre-requisites:
Make sure Nexus is successfully configured, it is up and running.
Also do open port 8085 open as well besides port 8081 for Nexus.
Docker is setup and running.
Steps to configure Nexus 3 as Docker Registry:
1. Login to Nexus and click on Server Administration link at the top of the window. Click on Repositories.
2. Now click on create repository
3. Choose docker hosted repository
4. Choose the value as mentioned:
5. Click on Create repository.
Configure Realm
6. Move Docker Bearer Token realm to right by clicking on >
This settings allows docker repository to have anonymous read enabled.
7. after moving save it.
Please click below link to know how to create Docker image and push docker images into Nexus
SonaType Nexus3 is one of the popular binary repository managers, used for storing build artifacts such as Jars,WARs, EARs. It is Java based web application.
Pre-requistes Please create a new Ubuntu 18.0.4 EC2 instance with small type in AWS cloud. You would need at least 2 GB RAM.
Let us see how to configure Nexus 3 on Ubuntu 18.0.4.
How to setup SonaType Nexus3 on Ubuntu: Java 8 installation sudo apt update && sudo apt install openjdk-8-jre-headless -y
Note: Nexus is not compatible with Java 11 in Ubuntu 18.0.4. So we need to install Java 8. java -version
Execute the below commands - navigate to /opt directory by changing directory: cd /opt