$ vi Dockerfile
FROM daocloud.io/library/centos:7
MAINTAINER ljy
RUN mkdir /usr/local/jdk
WORKDIR /usr/local/jdk
ADD jdk-8u211-linux-x64.tar.gz /usr/local/jdk
ENV JAVA_HOME /usr/local/jdk/jdk1.8.0_211
ENV JRE_HOME /usr/local/jdk/jdk1.8.0_211/jre
ENV PATH $JAVA_HOME/bin:$PATH
ADD flink-1.14.4-bin-scala_2.12.tgz /opt
WORKDIR /opt/flink-1.14.4
EXPOSE 8081
$ docker build -f Dockerfile -t flink .
$ docker run -itd -p 8081:8081 --name flink flink
$ docker exec -it flink /bin/bash
1