# Supported tags and respective `Dockerfile` links - [`1.7.2-hadoop24-scala_2.11` (*1.7/hadoop24-scala_2.11-debian/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/d1f94159f1b7bc5dec7af195d191d100e2a02333/1.7/hadoop24-scala_2.11-debian/Dockerfile) - [`1.7.2-hadoop24-scala_2.12`, `1.7.2-hadoop24`, `1.7-hadoop24` (*1.7/hadoop24-scala_2.12-debian/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/d1f94159f1b7bc5dec7af195d191d100e2a02333/1.7/hadoop24-scala_2.12-debian/Dockerfile) - [`1.7.2-hadoop26-scala_2.11` (*1.7/hadoop26-scala_2.11-debian/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/d1f94159f1b7bc5dec7af195d191d100e2a02333/1.7/hadoop26-scala_2.11-debian/Dockerfile) - [`1.7.2-hadoop26-scala_2.12`, `1.7.2-hadoop26`, `1.7-hadoop26` (*1.7/hadoop26-scala_2.12-debian/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/d1f94159f1b7bc5dec7af195d191d100e2a02333/1.7/hadoop26-scala_2.12-debian/Dockerfile) - [`1.7.2-hadoop27-scala_2.11` (*1.7/hadoop27-scala_2.11-debian/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/d1f94159f1b7bc5dec7af195d191d100e2a02333/1.7/hadoop27-scala_2.11-debian/Dockerfile) - [`1.7.2-hadoop27-scala_2.12`, `1.7.2-hadoop27`, `1.7-hadoop27` (*1.7/hadoop27-scala_2.12-debian/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/d1f94159f1b7bc5dec7af195d191d100e2a02333/1.7/hadoop27-scala_2.12-debian/Dockerfile) - [`1.7.2-hadoop28-scala_2.11` (*1.7/hadoop28-scala_2.11-debian/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/d1f94159f1b7bc5dec7af195d191d100e2a02333/1.7/hadoop28-scala_2.11-debian/Dockerfile) - [`1.7.2-hadoop28-scala_2.12`, `1.7.2-hadoop28`, `1.7-hadoop28` (*1.7/hadoop28-scala_2.12-debian/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/d1f94159f1b7bc5dec7af195d191d100e2a02333/1.7/hadoop28-scala_2.12-debian/Dockerfile) - [`1.7.2-scala_2.11`, `1.7-scala_2.11` (*1.7/scala_2.11-debian/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/d1f94159f1b7bc5dec7af195d191d100e2a02333/1.7/scala_2.11-debian/Dockerfile) - [`1.7.2-scala_2.12`, `1.7-scala_2.12`, `1.7.2`, `1.7` (*1.7/scala_2.12-debian/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/d1f94159f1b7bc5dec7af195d191d100e2a02333/1.7/scala_2.12-debian/Dockerfile) - [`1.7.2-hadoop24-scala_2.11-alpine` (*1.7/hadoop24-scala_2.11-alpine/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/d1f94159f1b7bc5dec7af195d191d100e2a02333/1.7/hadoop24-scala_2.11-alpine/Dockerfile) - [`1.7.2-hadoop24-scala_2.12-alpine`, `1.7.2-hadoop24-alpine`, `1.7-hadoop24-alpine` (*1.7/hadoop24-scala_2.12-alpine/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/d1f94159f1b7bc5dec7af195d191d100e2a02333/1.7/hadoop24-scala_2.12-alpine/Dockerfile) - [`1.7.2-hadoop26-scala_2.11-alpine` (*1.7/hadoop26-scala_2.11-alpine/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/d1f94159f1b7bc5dec7af195d191d100e2a02333/1.7/hadoop26-scala_2.11-alpine/Dockerfile) - [`1.7.2-hadoop26-scala_2.12-alpine`, `1.7.2-hadoop26-alpine`, `1.7-hadoop26-alpine` (*1.7/hadoop26-scala_2.12-alpine/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/d1f94159f1b7bc5dec7af195d191d100e2a02333/1.7/hadoop26-scala_2.12-alpine/Dockerfile) - [`1.7.2-hadoop27-scala_2.11-alpine` (*1.7/hadoop27-scala_2.11-alpine/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/d1f94159f1b7bc5dec7af195d191d100e2a02333/1.7/hadoop27-scala_2.11-alpine/Dockerfile) - [`1.7.2-hadoop27-scala_2.12-alpine`, `1.7.2-hadoop27-alpine`, `1.7-hadoop27-alpine` (*1.7/hadoop27-scala_2.12-alpine/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/d1f94159f1b7bc5dec7af195d191d100e2a02333/1.7/hadoop27-scala_2.12-alpine/Dockerfile) - [`1.7.2-hadoop28-scala_2.11-alpine` (*1.7/hadoop28-scala_2.11-alpine/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/d1f94159f1b7bc5dec7af195d191d100e2a02333/1.7/hadoop28-scala_2.11-alpine/Dockerfile) - [`1.7.2-hadoop28-scala_2.12-alpine`, `1.7.2-hadoop28-alpine`, `1.7-hadoop28-alpine` (*1.7/hadoop28-scala_2.12-alpine/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/d1f94159f1b7bc5dec7af195d191d100e2a02333/1.7/hadoop28-scala_2.12-alpine/Dockerfile) - [`1.7.2-scala_2.11-alpine`, `1.7-scala_2.11-alpine` (*1.7/scala_2.11-alpine/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/d1f94159f1b7bc5dec7af195d191d100e2a02333/1.7/scala_2.11-alpine/Dockerfile) - [`1.7.2-scala_2.12-alpine`, `1.7-scala_2.12-alpine`, `1.7.2-alpine`, `1.7-alpine` (*1.7/scala_2.12-alpine/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/d1f94159f1b7bc5dec7af195d191d100e2a02333/1.7/scala_2.12-alpine/Dockerfile) - [`1.8.0-scala_2.11`, `1.8-scala_2.11`, `scala_2.11` (*1.8/scala_2.11-debian/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/8808e12164f02f0b0e84c0f06d9fb0aa4ad19b60/1.8/scala_2.11-debian/Dockerfile) - [`1.8.0-scala_2.12`, `1.8-scala_2.12`, `scala_2.12`, `1.8.0`, `1.8`, `latest` (*1.8/scala_2.12-debian/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/8808e12164f02f0b0e84c0f06d9fb0aa4ad19b60/1.8/scala_2.12-debian/Dockerfile) - [`1.8.0-scala_2.11-alpine`, `1.8-scala_2.11-alpine`, `scala_2.11-alpine` (*1.8/scala_2.11-alpine/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/8808e12164f02f0b0e84c0f06d9fb0aa4ad19b60/1.8/scala_2.11-alpine/Dockerfile) - [`1.8.0-scala_2.12-alpine`, `1.8-scala_2.12-alpine`, `scala_2.12-alpine`, `1.8.0-alpine`, `1.8-alpine`, `alpine` (*1.8/scala_2.12-alpine/Dockerfile*)](https://github.com/docker-flink/docker-flink/blob/8808e12164f02f0b0e84c0f06d9fb0aa4ad19b60/1.8/scala_2.12-alpine/Dockerfile) # Quick reference - **Where to get help**: [Community & Project Info](https://flink.apache.org/community.html) - **Where to file issues**: [https://github.com/docker-flink/docker-flink/issues](https://github.com/docker-flink/docker-flink/issues) - **Maintained by**: [members of the Apache Flink community](https://github.com/docker-flink/docker-flink) - **Supported architectures**: ([more info](https://github.com/docker-library/official-images#architectures-other-than-amd64)) [`amd64`](https://hub.docker.com/r/amd64/flink/), [`arm32v5`](https://hub.docker.com/r/arm32v5/flink/), [`arm32v6`](https://hub.docker.com/r/arm32v6/flink/), [`arm32v7`](https://hub.docker.com/r/arm32v7/flink/), [`arm64v8`](https://hub.docker.com/r/arm64v8/flink/), [`i386`](https://hub.docker.com/r/i386/flink/), [`ppc64le`](https://hub.docker.com/r/ppc64le/flink/), [`s390x`](https://hub.docker.com/r/s390x/flink/) - **Published image artifact details**: [repo-info repo's `repos/flink/` directory](https://github.com/docker-library/repo-info/blob/master/repos/flink) ([history](https://github.com/docker-library/repo-info/commits/master/repos/flink)) (image metadata, transfer size, etc) - **Image updates**: [official-images PRs with label `library/flink`](https://github.com/docker-library/official-images/pulls?q=label%3Alibrary%2Fflink) [official-images repo's `library/flink` file](https://github.com/docker-library/official-images/blob/master/library/flink) ([history](https://github.com/docker-library/official-images/commits/master/library/flink)) - **Source of this description**: [docs repo's `flink/` directory](https://github.com/docker-library/docs/tree/master/flink) ([history](https://github.com/docker-library/docs/commits/master/flink)) - **Supported Docker versions**: [the latest release](https://github.com/docker/docker-ce/releases/latest) (down to 1.6 on a best-effort basis) # What is Apache Flink? Apache Flink is an open source stream processing framework with powerful stream- and batch-processing capabilities. Learn more about Flink at [https://flink.apache.org/](https://flink.apache.org/) > [wikipedia.org/wiki/Apache_Flink](https://en.wikipedia.org/wiki/Apache_Flink) ![logo](https://raw.githubusercontent.com/docker-library/docs/71398f44551617e3934a86b4b7a3c770ae093b59/flink/logo.png) # Flink Docker image tags Starting with Flink 1.5, images without "hadoop" in the tag are the "Hadoop-free" variant of Flink. If you require Hadoop support (such as its HDFS filesystem implementation), you should reference an image whose tag includes the Hadoop version you need. # How to use this Docker image ## Running a JobManager or a TaskManager You can run a JobManager (master). ```console $ docker run --name flink_jobmanager -d -t flink jobmanager ``` You can also run a TaskManager (worker). Notice that workers need to register with the JobManager directly or via ZooKeeper so the master starts to send them tasks to execute. ```console $ docker run --name flink_taskmanager -d -t flink taskmanager ``` ## Running a cluster using Docker Compose With Docker Compose you can create a Flink cluster: ```yml version: "2.1" services: jobmanager: image: ${FLINK_DOCKER_IMAGE_NAME:-flink} expose: - "6123" ports: - "8081:8081" command: jobmanager environment: - JOB_MANAGER_RPC_ADDRESS=jobmanager taskmanager: image: ${FLINK_DOCKER_IMAGE_NAME:-flink} expose: - "6121" - "6122" depends_on: - jobmanager command: taskmanager links: - "jobmanager:jobmanager" environment: - JOB_MANAGER_RPC_ADDRESS=jobmanager ``` and just run `docker-compose up`. Scale the cluster up or down to *N* TaskManagers: ```console docker-compose scale taskmanager= ``` ## Configuration These are the default ports used by the Flink image: - The Web Client is on port `8081` - JobManager RPC port `6123` - TaskManagers RPC port `6122` - TaskManagers Data port `6121` # About this repository This repository is available on [github.com/docker-flink/docker-flink](https://github.com/docker-flink/docker-flink), and the official build is on the [Docker Hub](https://hub.docker.com/_/flink/). This repository is maintained by members of the Apache Flink community. # Image Variants The `flink` images come in many flavors, each designed for a specific use case. ## `flink:` 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. ## `flink:-alpine` This image is based on the popular [Alpine Linux project](http://alpinelinux.org), available in [the `alpine` official image](https://hub.docker.com/_/alpine). Alpine Linux is much smaller than most distribution base images (~5MB), and thus leads to much slimmer images in general. This variant is highly recommended when final image size being as small as possible is desired. The main caveat to note is that it does use [musl libc](http://www.musl-libc.org) instead of [glibc and friends](http://www.etalabs.net/compare_libcs.html), so certain software might run into issues depending on the depth of their libc requirements. However, most software doesn't have an issue with this, so this variant is usually a very safe choice. See [this Hacker News comment thread](https://news.ycombinator.com/item?id=10782897) 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](https://hub.docker.com/_/alpine/) for examples of how to install packages if you are unfamiliar). # License Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at https://www.apache.org/licenses/LICENSE-2.0 Apache Flink, FlinkĀ®, ApacheĀ®, the squirrel logo, and the Apache feather logo are either registered trademarks or trademarks of The Apache Software Foundation. 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 `flink/` directory](https://github.com/docker-library/repo-info/tree/master/repos/flink). 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.