Skip to content

Instantly share code, notes, and snippets.

@luebken
Last active August 29, 2015 14:19
Show Gist options
  • Save luebken/66deceb8e1962c520572 to your computer and use it in GitHub Desktop.
Save luebken/66deceb8e1962c520572 to your computer and use it in GitHub Desktop.
Java Docker image comparison.
Sizes of the different Java images for comparison. Pulled 16. April 2015.
JDK6: 419.1 MB
JRE6: 194.5 MB
JDK7: 584.9 MB
JRE7: 332.3 MB
JDK8: 815.5 MB
JRE8: 479.3 MB
```
Warning: '-tree' is deprecated, it will be removed soon. See usage.
└─511136ea3c5a Virtual Size: 0 B
├─4f903438061c Virtual Size: 84.98 MB
│ └─1265e16d0c28 Virtual Size: 84.98 MB Tags: debian:wheezy
│ └─85ab397841a4 Virtual Size: 99.22 MB
│ ├─14d654db1570 Virtual Size: 100 MB
│ │ └─d8f746040cdb Virtual Size: 100 MB
│ │ └─748e504709bd Virtual Size: 100 MB
│ │ └─6975b9b0cdbc Virtual Size: 194.5 MB Tags: java:6-jre
│ └─e7f2b26d1aa9 Virtual Size: 208.7 MB Tags: buildpack-deps:wheezy-scm
│ └─f702ed9d3615 Virtual Size: 209.6 MB
│ └─3810e2a10d5e Virtual Size: 209.6 MB
│ └─eae89cd2ce16 Virtual Size: 209.6 MB
│ └─d2832f50d242 Virtual Size: 419.1 MB Tags: java:6, java:6-jdk
├─19df420c532f Virtual Size: 123 MB
│ └─91f2410be649 Virtual Size: 123 MB Tags: debian:sid
│ └─b2bf5bbb1764 Virtual Size: 167.9 MB Tags: buildpack-deps:sid-curl
│ ├─02ca5cc62616 Virtual Size: 168.6 MB
│ │ └─431948aa25ef Virtual Size: 168.6 MB
│ │ └─b113d197c840 Virtual Size: 168.6 MB
│ │ └─102e68bfbc29 Virtual Size: 168.6 MB
│ │ └─be906d05c9a8 Virtual Size: 478.9 MB
│ │ └─028f36974b77 Virtual Size: 479.3 MB Tags: java:8-jre
│ └─81aaad2d635c Virtual Size: 290.2 MB Tags: buildpack-deps:sid-scm
│ └─7a9af5e052ac Virtual Size: 291 MB
│ └─e84ca0bfa45f Virtual Size: 291 MB
│ └─e919123b2e8e Virtual Size: 291 MB
│ └─e6e48f71f31a Virtual Size: 291 MB
│ └─9399badbce8f Virtual Size: 815.1 MB
│ └─478dd73b9c9a Virtual Size: 815.5 MB Tags: java:8, java:8-jdk
└─d338bb63f151 Virtual Size: 122.8 MB
└─65688f7c61c4 Virtual Size: 122.8 MB Tags: debian:jessie
└─b7820d1ee4ee Virtual Size: 167.1 MB Tags: buildpack-deps:jessie-curl
├─4d0d7acdf9db Virtual Size: 167.8 MB
│ └─22df52eafda5 Virtual Size: 167.8 MB
│ └─7428e160408e Virtual Size: 167.8 MB
│ └─7f628ae52eec Virtual Size: 332.3 MB Tags: java:7-jre
└─938e3817ad84 Virtual Size: 289.5 MB
└─97ff736c6596 Virtual Size: 290.2 MB
└─9f90d20640d8 Virtual Size: 290.2 MB
└─113a9a21d4f9 Virtual Size: 290.2 MB
└─3e5c514a50d6 Virtual Size: 584.9 MB Tags: java:7, java:7-jdk, java:latest
```
apt-get install -y openjdk-6-jre-headless adds 94.5 MB:
https://github.com/docker-library/java/blob/3faf377815bd5409f91a007b092d38a36134baf5/openjdk-6-jre/Dockerfile#L13
https://packages.debian.org/en/wheezy/openjdk-6-jre-headless: Installed Size 45,455.0 kB
apt-get install -y openjdk-8-jre-headless adds 310,3 MB:
https://github.com/docker-library/java/blob/3faf377815bd5409f91a007b092d38a36134baf5/openjdk-8-jre/Dockerfile#L17
https://packages.debian.org/en/sid/openjdk-8-jre-headless: Installed Size 268,169.0 kB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment