DockerState

Home › Language runtimes › ruby

Ruby ruby

The Ruby interpreter with gem and bundler. 3 tags measured; 1,587,839,619 pulls on Docker Hub.

4.0-alpinesmallest · 92 MB unpacked
4.0largest · 1,139 MB unpacked
4.0-alpinefewest known CVEs · 2

Which Ruby tag is smallest?

ruby:4.0-alpine is the smallest of the tags we measured: 92 MB unpacked and a 50 MB download on amd64, against 1,139 MB and 430 MB for ruby:4.0, 12.3× smaller. The tag with the fewest known vulnerabilities is ruby:4.0-alpine (2, 1 critical or high).

Tags at a glance

Image Size (compressed, amd64) Unpacked Base OS Layers Packages Vulnerabilities Updated
ruby:4.0 430 MB 1,139 MB Debian 13.7 (trixie) 7 539 C 17H 445M 1481L 1834? 41 4 days ago
ruby:4.0-slim 81 MB 179 MB Debian 13.7 (trixie) 5 166 C 1H 43M 60L 61? 1 4 days ago
ruby:4.0-alpine 50 MB 92 MB Alpine Linux 3.24.3 4 105 C 1L 1 2 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.