The short answer
- postgres:18-alpine is 157 MB smaller unpacked on amd64 (307 MB vs 464 MB, 34% less).
- As a download, postgres:18-alpine is 120 MB compressed against 162 MB for postgres:18: 1.4× less to pull.
- postgres:18-alpine has fewer known vulnerabilities: 86 (28 critical or high) against 378 (88 critical or high) in postgres:18.
- 61 of postgres:18's 378 findings have a fixed version available upstream.
- 86 of postgres:18-alpine's 86 findings have a fixed version available upstream.
- Base OS: postgres:18 is built on Debian 13.7 (trixie); postgres:18-alpine on Alpine Linux 3.24.3.
- Alpine images use musl libc instead of glibc. Most software runs unchanged; prebuilt binaries linked against glibc (some Python wheels, Node native modules, vendor agents) may not.
- Packages detected: 149 in postgres:18, 57 in postgres:18-alpine.
- Filesystem layers: 13 vs 9.
- Platforms: only postgres:18 ships arm/v5; only postgres:18-alpine ships arm/v6.
| postgres:18 | postgres:18-alpine | |
|---|---|---|
| Download, amd64 | 162 MB | 120 MB |
| Unpacked, amd64 | 464 MB | 307 MB |
| Download, arm64 | 161 MB | 118 MB |
| Base OS | Debian 13.7 (trixie) | Alpine Linux 3.24.3 |
| Layers | 13 | 9 |
| Packages | 149 | 57 |
| Files | 7,733 | 2,988 |
| Known vulnerabilities | C 2H 86M 144L 141? 5 | C 2H 26M 32L 25? 1 |
| Default user | root | root |
| Platforms | 8 | 8 |
| Last pushed | yesterday | 6 days ago |
Size
Compressed (download)Unpacked (on disk)
Vulnerabilities
CriticalHighMediumLowUnknown
Compare against something else →
Highlighted cells are lower (smaller or fewer). Sizes from Docker Hub checked 2026-11-01; measurements and SBOMs from 2026-10-31 and 2026-10-26; vulnerability database 2026-11-01. Methodology.