Which PostgreSQL tag is smallest?
postgres:18-alpine is the smallest of the tags we measured: 307 MB unpacked and a 120 MB download on amd64, against 464 MB and 162 MB for postgres:18, 1.5× smaller. The tag with the fewest known vulnerabilities is postgres:18-alpine (86, 28 critical or high).
Tags at a glance
| Image | Size (compressed, amd64) | Unpacked | Base OS | Layers | Packages | Vulnerabilities | Updated |
|---|---|---|---|---|---|---|---|
| postgres:18 | 162 MB | 464 MB | Debian 13.7 (trixie) | 13 | 149 | C 2H 86M 144L 141? 5 | yesterday |
| postgres:18-alpine | 120 MB | 307 MB | Alpine Linux 3.24.3 | 9 | 57 | C 2H 26M 32L 25? 1 | 6 days ago |
Size by tag (amd64)
Compressed (download)Unpacked (on disk)
Known vulnerabilities by tag
CriticalHighMediumLowUnknown
Download size on arm64
Compressed size of the arm64 (v8) variant, for Apple Silicon, Graviton and Ampere hosts.
Comparisons
Sizes from the Docker Hub API, checked 2026-11-01. Unpacked size, files and packages measured from the amd64 image. Vulnerabilities from Trivy, database dated 2026-11-01. How we measure.