- 拉取flink镜像。
docker pull flink:1.10.0-scala_2.12
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
- 创建、运行flink容器
docker-compose up
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)