How to upload and download docker images using nexus registry/repository?

Step 1- Setup your Nexus server and required authentication

Step 2- Create docker repo at Nexus

Step 3- Install Docker & Configure with non httpds

Step 4- Create a Dockerfile for an Image

$ more dockerfile
FROM ubuntu
MAINTAINER Rajesh kumar rajesh@devopsschool.com
RUN touch /opt/devopsschool.txt

Step 5- Create a docker image

$ docker build -t devopsschool .
$ docker images

Step 6- Docker login

$ docker login http://15.206.81.210:9001/repository/docker-hosted/

Step 7- Match a Image name with repository by following pattern

$ docker tag devopsschool 15.206.81.210:9001/docker-hosted/devopsschool

Step 8- Docker push

$ docker push 15.206.81.210:9001/docker-hosted/devopsschool

Step 9- Docker pull

$ docker pull 15.206.81.210:9001/docker-hosted/devopsschool
Rajesh Kumar