环境
CPU: x86_64
操作系统: ArchLinux(单节点, 虚拟机, in vmware workstation 16 player)
Kernel: Linux archlinux 6.2.9-arch1-1
doris docker版本: apache/doris 1.2.2-be-x86_64 apache/doris 1.2.2-fe-x86_64
现象
启动fe和be后, fe在十几秒后exit, be正常
复现流程
1.拉取fe和be的image
docker pull apache/doris 1.2.2-fe-x86_64
docker pull apache/doris 1.2.2-be-x86_64
2.创建子网网桥
docker network create --driver bridge --subnet=172.20.80.0/24 doris-network
3.环境准备
sysctl -w vm.max_map_count=2000000
4.启动fe和be
docker run -itd \
--name=fe \
--env FE_SERVERS="fe1:172.20.80.2:9010" \
--env FE_ID=1 \
-p 8030:8030 \
-p 9030:9030 \
-v /home/ziya/workspace/docker_doris/data/fe/doris-meta:/opt/apache-doris/fe/doris-meta \
-v /home/ziya/workspace/docker_doris/data/fe/conf:/opt/apache-doris/fe/conf \
-v /home/ziya/workspace/docker_doris/data/fe/log:/opt/apache-doris/fe/log \
--network=doris-network \
--ip=172.20.80.2 \
apache/doris:1.2.2-fe-x86_64
docker run -itd \
--name=be \
--env FE_SERVERS="fe1:172.20.80.2:9010" \
--env BE_ADDR="172.20.80.3:9050" \
-p 8040:8040 \
-v /home/ziya/workspace/docker_doris/data/be/storage:/opt/apache-doris/be/storage \
-v /home/ziya/workspace/docker_doris/data/be/conf:/opt/apache-doris/be/conf \
-v /home/ziya/workspace/docker_doris/data/be/log:/opt/apache-doris/be/log \
--network=doris-network \
--ip=172.20.80.3 \
apache/doris:1.2.2-be-x86_64
标签:--,apache,64,fe,Apache,docker,doris
From: https://www.cnblogs.com/ziyazz/p/17285810.html