Nexus3 with enhanced APT Repository Support
1.3K
A drop-in replacement for the official sonatype/nexus3ā image, built on top of the upstream codebase with additional patches for improved APT repository support that are not (yet) available upstream.
This image is intended for users who rely on Nexus Repository's apt format and need features currently pending review in the official Sonatype repository.
This image applies the following patch on top of the stock sonatype/nexus-public source:
PR sonatype/nexus-public#1038ā
This patch (by Patrik Dufresneā ) adds:
distribution and component values instead of relying solely on repository-level defaults.xz compression support for generated Packages index files in hosted APT repositories, in addition to the existing gzip/bzip2 support.This addresses long-standing community requests, including:
ā ļø Note: This is a community-contributed patch that has not been merged into upstream Nexus Repository OSS as of the image build date. It is applied here on a best-effort basis to make the functionality available to users who need it now. Behavior may change if/when the upstream PR evolves or is merged/rejected.
This image is a drop-in replacement ā usage is identical to the official image.
docker run -d -p 8081:8081 --name nexus \
-v nexus-data:/nexus-data \
ikus060/nexus3:3.94.1
version: "3.8"
services:
nexus:
image: ikus060/nexus3:3.94.1
container_name: nexus
ports:
- "8081:8081"
volumes:
- nexus-data:/nexus-data
restart: unless-stopped
volumes:
nexus-data:
Default credentials, ports, and data directory conventions match the official image. See the official Sonatype documentationā for general configuration guidance.
| Tag | Description |
|---|---|
3.94.1 | Patched build based on Nexus 3.94.1 with APT xz/multi-distribution support |
3.94.1-<commithash> | Patched build based on Nexus 3.94.1 with APT xz/multi-distribution support, tied to a specific commit |
Check the Tags tab on Docker Hub for the full list of available versions.
This image is built by:
sonatype/nexus3 runtime layout.Dockerfile and build scripts are available in the source repository: š Gitlab Repositoryā
sonatype/nexus-public and may not follow the same QA/release process as official Sonatype builds.Nexus Repository OSS is licensed under the Eclipse Public License. This image redistributes a modified build of that codebase; see the upstream project licenseā for details.
Here a screenshot of the modified upload form where user could define the distribution and the component explicitly.

Alternatively, you may also define the distribution and component when uploading the packages:
curl -u username:password \
-H "Content-Type: multipart/form-data" \
--data-binary @./package_1.0_amd64.deb \
"http://your-nexus-server:8081/repository/your-apt-repo-name/?distribution=trixie,forky&component=non-free"
It's also possible to do the same using the REST API:
curl -u username:password \
-X POST \
"http://your-nexus-server:8081/service/rest/v1/components?repository=your-apt-repo-name" \
-F "apt.asset=@/path/to/package_1.0_amd64.deb;type=application/x-debian-package"
-F "apt.asset.distribution=trixie,forky"
-F "apt.asset.component=non-free"
Content type
Image
Digest
sha256:5c20fde93ā¦
Size
789.3 MB
Last updated
about 1 month ago
docker pull ikus060/nexus3:3.94.1