How to install flink-1.10 on centos7 within Docker

Flink May 19, 2020

Apache Flink is a framework and distributed processing engine for stateful computations over unbounded and bounded data streams. Flink has been designed to run in all common cluster environments, perform computations at in-memory speed and at any scale. Flink is very fast with low latency and high throughout.

download flink from, here we use scala 2.11 version.

Start centos7 docker container

We want to install flink on three centos7 nodes, so we need to start three docker containers.

docker run --name flink.1 -itd --network ideras --restart always --privileged=true --ip centos:7 /usr/sbin/init
docker run --name flink.2 -itd --network ideras --restart always --privileged=true --ip centos:7 /usr/sbin/init
docker run --name flink.3 -itd --network ideras --restart always --privileged=true --ip centos:7 /usr/sbin/init

Edit /home/app/flink-1.10.1/conf/flink-conf.yaml , setting


Edit /home/app/flink-1.10.1/conf/masters

Edit /home/app/flink-1.10.1/conf/slaves

Now copy the flink files from to and

Config passwordless ssh login to and, if you don't know how to do it, please google it.


Now open, you can see flink's dashboard page.

What's next

Next i will write post about how to setup elasticsearch7 cluster with docker, please wait for it.

Shaoyang Liu

Founder of and, write blog about java and node.js technology.

Great! You've successfully subscribed.
Great! Next, complete checkout for full access.
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.