From 920cc9860e0642cf6b01eb424cc4ef0c7ae6bdec Mon Sep 17 00:00:00 2001 From: Whale Date: Sat, 29 Dec 2018 14:30:07 +0800 Subject: [PATCH] Update start-coolq.sh --- start-coolq.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/start-coolq.sh b/start-coolq.sh index c79d73dc..78e78659 100644 --- a/start-coolq.sh +++ b/start-coolq.sh @@ -33,12 +33,7 @@ if [[ ! $? -eq 0 ]]; then continue fi done - echo "是否使用主机模式(将docker的端口完全映射到宿主机) [y/n] : " - read host_mode - host_mode_line="-p 9000:9000 -p 20000:20000" - if [[ ${host_mode} = "y" ]]; then - host_mode_line="--net=host" - fi + host_mode_line="--net=host" sudo docker run --name coolq -d -v $(pwd)/coolq-data:/home/user/coolq \ ${host_mode_line} \ -e VNC_PASSWD=${vnc_pwd} \ @@ -58,4 +53,4 @@ if [[ ! $? -eq 0 ]]; then else sudo docker start coolq echo "已启动酷Q docker!" -fi \ No newline at end of file +fi