Sonatype Nexus3 docker image - How to setup an internal docker repository Sonatype Nexus3 docker image - How to setup an internal docker repository docker docker

Sonatype Nexus3 docker image - How to setup an internal docker repository


One of our internal people here at Sonatype created a Docker image that helps with this:

https://hub.docker.com/r/bradbeck/nexus-https/~/dockerfile/

This might help grease the skids for you. Of note this is not supported by Sonatype, but by Brad himself. Using this Dockerfile as your base would be good, as it will likely be fairly close to our supported one.

You'd likely modify this to expose a few more ports for the Docker registries you want to create. Thoughts are an internal hosted registry, a proxy of the hub, and then a group of the two for ease of access.

Run through most of the work here as well: https://books.sonatype.com/nexus-book/reference3/docker.html


$ docker run -d -p 8081:8081Have you mapped the port with host and docker container.

You can login in container as

           ```docker exec -it $container_id /bin/bash```


You can try to use my solution, which actually doesn't modify sonatype/nexus3 original image, but instead use nginx-proxy (with ssl support) in front of nexus3 itself. In short it uses docker-compose to make nexus3+nginx work out of the box with one click. And at the same time I also have some API calls to make configuration changes during nexus3 deployment, you can extend them with your custom ones.