Show List

Running Nexus Application Docker Image

Nexus is an open source repository supports many type of artifacts such as jars. Applications can publish and retrieve the artifacts and dependencies from Nexus repository.

In this demo we will create Nexus application locally by pulling the docker image. These same steps can be used for any other docker image as well.

Running Docker Image

1) Start the Docker desktop application. 
2) From the command line, run command "docker run -d -p 8081:8081 --name nexus sonatype/nexus3". This would start the container and and forward the port 8081 from container onto the host OS so you can hit the services using http://localhost:8081. 
C:\Users\mail2>docker run -d -p 8081:8081 --name nexus sonatype/nexus3
docker: error during connect: This error may indicate that the docker daemon is not running.: Post "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/create?name=nexus": open //./pipe/docker_engine: The system cannot find the file specified.
See 'docker run --help'.

C:\Users\mail2>docker run -d -p 8081:8081 --name nexus sonatype/nexus3
Unable to find image 'sonatype/nexus3:latest' locally
latest: Pulling from sonatype/nexus3
1d6f30850896: Pull complete
b8955312e602: Pull complete
aa75fe8ade06: Pull complete
5a9d97624140: Pull complete
86982fb8397f: Pull complete
909c9e527cda: Pull complete
8807cd80c7ba: Pull complete
Digest: sha256:f5e60ea49319d27f16425bdcf3b146e5f55b5e4e7b91ccc8cc5721bd4b7c377a
Status: Downloaded newer image for sonatype/nexus3:latest
599bb3145263af7cf8f04c18c76207d1ac366ccc21a5055dff0da3df29c12334
The information can also be viewed from the Docker Desktop

Access the Application

Application can be accessed on the provided port http://localhost:8081

    Leave a Comment


  • captcha text