/
Push docker image to nexus repository

Push docker image to nexus repository

Below are the steps to build and publish docker images to nexus repository.

a. Login to nexus server with credentials 

docker login -u username imagehub.cdc.gov:5989

b. create dockerfile with required configuration

c. build docker image locally using Dockerfile with tag which point to nexus repository.

docker build -t imagehub.cdc.gov:5989/helloworld:latest .

d. Then push the image to nexus repository 

docker push imagehub.cdc.gov:5989/helloworld:latest

 Follow the instructions given on the page How to create image stream to use above  docker image in openshift ECPaaS environment.

Related content

Collaboration Spaces for Public Health Surveillance

This site is set up for CDC to collaborate with public health to improve public health surveillance and disease tracking. All information and content is draft and official content will be published through cdc.gov and appropriate channels for records management.

For more info, visit http://www.cdc.gov/surveillance

Disclaimer & Notice | Contributing | Code of Conduct | License