docker run -dit \-v $PWD/ql/config:/ql/config \-v $PWD/ql/log:/ql/log \-v $PWD/ql/db:/ql/db \-v $PWD/ql/repo:/ql/repo \-v $PWD/ql/raw:/ql/raw \-v $PWD/ql/scripts:/ql/scripts \-v $PWD/ql/jbot:/ql/jbot \-p 5700:5600 \--name qinglong \--hostname qinglong \--restart unless-stopped \whyour/qinglong:latest
docker run -dit \-v $PWD/ql1/config:/ql/config \-v $PWD/ql1/log:/ql/log \-v $PWD/ql1/db:/ql/db \-v $PWD/ql1/repo:/ql/repo \-v $PWD/ql1/raw:/ql/raw \-v $PWD/ql1/scripts:/ql/scripts \-v $PWD/ql1/jbot:/ql/jbot \-p 5710:5700 \--name qinglong1 \--hostname qinglong1 \--restart unless-stopped \whyour/qinglong:latest
docker run -dit \-v $PWD/ql2/config:/ql/config \-v $PWD/ql2/log:/ql/log \-v $PWD/ql2/db:/ql/db \-v $PWD/ql2/repo:/ql/repo \-v $PWD/ql2/raw:/ql/raw \-v $PWD/ql2/scripts:/ql/scripts \-v $PWD/ql2/jbot:/ql/jbot \-p 5720:5700 \--name qinglong2 \--hostname qinglong2 \--restart unless-stopped \whyour/qinglong:latest
docker run -dit \-v $PWD/ql3/config:/ql/config \-v $PWD/ql3/log:/ql/log \-v $PWD/ql3/db:/ql/db \-v $PWD/ql3/repo:/ql/repo \-v $PWD/ql3/raw:/ql/raw \-v $PWD/ql3/scripts:/ql/scripts \-v $PWD/ql3/jbot:/ql/jbot \-p 5730:5700 \--name qinglong3 \--hostname qinglong3 \--restart unless-stopped \whyour/qinglong:latest
docker run -dit \-v $PWD/ql4/config:/ql/config \-v $PWD/ql4/log:/ql/log \-v $PWD/ql4/db:/ql/db \-v $PWD/ql4/repo:/ql/repo \-v $PWD/ql4/raw:/ql/raw \-v $PWD/ql4/scripts:/ql/scripts \-v $PWD/ql4/jbot:/ql/jbot \-p 5740:5700 \--name qinglong4 \--hostname qinglong4 \--restart unless-stopped \whyour/qinglong:latest
docker run -dit \-v $PWD/ql5/config:/ql/config \-v $PWD/ql5/log:/ql/log \-v $PWD/ql5/db:/ql/db \-v $PWD/ql5/repo:/ql/repo \-v $PWD/ql5/raw:/ql/raw \-v $PWD/ql5/scripts:/ql/scripts \-v $PWD/ql5/jbot:/ql/jbot \-p 5750:5700 \--name qinglong5 \--hostname qinglong5 \--restart unless-stopped \whyour/qinglong:latest
-
注:一般情况下,主容器的端口为5600,但对外使用会映射到5700,所以主容器的映射端口为5700:5600。
-
注:开启多容器后得修改相应的映射端口,例:主容器端口为5700:5600,其中映射端口为5700,被映射端口为5600。
-
注:搭建多容器1端口应改为5710:5700,其中映射端口为5710,被映射端口为主容器的5700,以此类推,搭建更多的容器时自行修改映射端口即可,如遇IP:端口打不开后台,请先去服务器内放行此端口。映射端口可自行修改。