azul-zulu

Docker Official Image

10K+

1

Azul Zulu is a fully tested, compatibility verified, and trusted binary distribution of OpenJDK.

azul-zulu Docker official image overview

Quick reference

Quick reference (cont.)

What are Azul Zulu Builds of OpenJDK?

Azul Zulu Builds of OpenJDK are fully tested, and TCK compliant builds of OpenJDK for Linux, Windows, and macOS operating systems.

logo

Azul Zulu Builds of OpenJDK are available for free unlimited use and are commercially supported by Azul as a part of the Azul Platform Core bundle.

Check out Azul Platform Core for more information. The technical documentation can be found on docs.azul.com/core.

Azul Zulu Images

Azul Zulu images on Docker Hub are available for different combinations of versions, packages, and systems.

Versions

Multiple Long Term Support (LTS) versions are available. For information on support duration and available versions, refer to the Azul Support Roadmap.

Packages

Multiple package types are available, including JDK and JRE variants. See the list of available tags for the complete list of supported packages.

Systems

Images are available for multiple base systems. See the list of available tags for the complete list of supported base systems.

Usage

Running a Container

To run a container of your choice and validate its version, use the command below as an example.

Using Azul Zulu based on Debian:

docker run -it --rm azul-zulu:<ZULU_VERSION>-debian<DISTRO_VERSION> java -version
Building a Container With Your Own Application

To build a Debian Docker container with a pre-built jar file with, use the following example Dockerfile:

FROM azul-zulu:<VERSION>
COPY my-app.jar /opt/my-app/
CMD ["java", "-jar", "/opt/my-app/my-app.jar"]

You can build and run the Docker Image as shown in the following example:

docker build -t my-app-container .
docker run -it --rm my-app-container

Image Variants

The azul-zulu images come in many flavors, each designed for a specific use case.

azul-zulu:<version>

This is the defacto image. If you are unsure about what your needs are, you probably want to use this one. It is designed to be used both as a throw away container (mount your source code and start the container to start your app), as well as the base to build other images off of.

azul-zulu:<version>-alpine

This image is based on the popular Alpine Linux project, available in the alpine official image. Alpine Linux is much smaller than most distribution base images (~5MB), and thus leads to much slimmer images in general.

This variant is useful when final image size being as small as possible is your primary concern. The main caveat to note is that it does use musl libc instead of glibc and friends, so software will often run into issues depending on the depth of their libc requirements/assumptions. See this Hacker News comment thread for more discussion of the issues that might arise and some pro/con comparisons of using Alpine-based images.

To minimize image size, it's uncommon for additional related tools (such as git or bash) to be included in Alpine-based images. Using this image as a base, add the things you need in your own Dockerfile (see the alpine image description for examples of how to install packages if you are unfamiliar).

License

View the Azul Docker license information and OpenJDK License for the software contained in this image.

As with all Docker images, these likely also contain other software which may be under other licenses (such as Bash, etc from the base distribution, along with any direct or indirect dependencies of the primary software being contained).

Some additional license information which was able to be auto-detected might be found in the repo-info repository's azul-zulu/ directory.

As for any pre-built image usage, it is the image user's responsibility to ensure that any use of this image complies with any relevant licenses for all software contained within.

Tag summary

Content type

Image

Digest

sha256:d746caed7

Size

73.9 MB

Last updated

about 17 hours ago

docker pull azul-zulu:8.94-8.0.492-jre-headless-debian13

This week's pulls

Pulls:

2,553

Last week

About Official Images

Docker Official Images are a curated set of Docker open source and drop-in solution repositories.

Why Official Images?

These images have clear documentation, promote best practices, and are designed for the most common use cases.