To download a Docker image from a Sonatype Nexus repository, you primarily use the docker pull command formatted with your Nexus server’s and its specific repository connector port .
A typical command follows this structure: docker pull : / : .
: If you want to pull images without logging in, the administrator must enable Allow anonymous Docker pulls in the specific repository’s settings. Repository Types for Downloads Pulling Images - Sonatype Help nexus download docker image
: Use the full path to the image. For example, to pull a version of Ubuntu from a Nexus instance at nexus.example.com on port 18443 : docker pull nexus.example.com:18443/ubuntu .
: A dedicated HTTP or HTTPS port must be assigned to the Docker repository (e.g., port 8082 for a proxy repo). To download a Docker image from a Sonatype
: Before pulling, you must log in to your specific Nexus repository port using the Docker CLI : docker login : .
To enable successful downloads, your Nexus administrator must have configured the following: Repository Types for Downloads Pulling Images - Sonatype
: The Docker Bearer Token Realm must be active in Nexus settings to handle Docker’s specific authentication method.
: When pulling official Docker Hub images through a Nexus proxy, they often appear under the library namespace (e.g., ://example.com ). Configuration Requirements
: If your Nexus server does not use a trusted SSL certificate, you must add its address to your local daemon.json under insecure-registries and restart Docker.