Minimal aptly (Debian repository manager) container image on debian:trixie-slim, built from the upst
225
Minimal container image for aptly, the Debian repository manager, built on debian:trixie-slim.
The image contains the upstream aptly release binary (checksum-verified against the SHA-256 digest GitHub records for the release asset), plus gnupg/gpgv (aptly calls gpg for signing), bzip2/xz-utils (compression of the published index files), curl (healthcheck) and CA certificates. It has no web server and no process supervisor: aptly serves its REST API only. Publish the public/ directory with a separate web server (see Serving the published repository).
| Tag | Meaning |
|---|---|
latest | the most recent build |
<aptly-version> (e.g. 1.6.3) | that aptly release; rebuilt whenever the Debian base image is updated |
Available on Docker Hub (cygnusnetworks/aptly) and GHCR (ghcr.io/cygnusnetworks/aptly) for linux/amd64 and linux/arm64. Pin the version tag in production.
A daily check (03:23 UTC) rebuilds and publishes the image when
debian:trixie-slim base image has a new digest (Debian security updates),Dockerfile or build workflow changed, orOtherwise nothing is rebuilt. Update your running container regularly (for example with Watchtower or docker compose pull && docker compose up -d) to pick up rebuilt images.
The image runs as root, uses GNUPGHOME=/opt/aptly/gpg and expects the aptly root directory (rootDir in the config) at the volume /opt/aptly.
docker run -d --name aptly \
-v aptly_data:/opt/aptly \
-v ./aptly.conf:/etc/aptly.conf \
cygnusnetworks/aptly:1.6.3
Default command: aptly api serve -listen=:8080 -no-lock. The REST API listens on port 8080; the built-in healthcheck queries /api/version.
aptly writes the published repositories to <rootDir>/public. Serve that directory read-only with a web server of your choice, for example with Docker Compose:
services:
aptly:
image: cygnusnetworks/aptly:1.6.3
restart: unless-stopped
volumes:
- aptly_data:/opt/aptly
- ./aptly.conf:/etc/aptly.conf
web:
image: nginx:stable-alpine
restart: unless-stopped
ports:
- 127.0.0.1:8082:80
volumes:
- type: volume
source: aptly_data
target: /opt/aptly/public
read_only: true
volume:
subpath: public # requires Docker Engine 26+; the web server only sees the published repositories
volumes:
aptly_data:
The REST API has no authentication of its own: do not expose port 8080 to untrusted networks, and put access control (IP allow lists, Basic auth, TLS) in front of the web server.
docker build -t aptly:local .
Override APTLY_VERSION, APTLY_SHA256_AMD64 and APTLY_SHA256_ARM64 to build another release.
The GitHub Actions workflows in this repository
main (ci.yml),docker-build.yml); a manual rebuild is possible via Run workflow with the force input,README.md to the Docker Hub description whenever it changes (docker-readme.yaml).Thanks to the aptly project for the upstream software.
Content type
Image
Digest
sha256:fc1d43673…
Size
76.6 MB
Last updated
2 days ago
docker pull cygnusnetworks/aptly