Jelajahi Sumber

add crawler etl shell

qingqu-git 1 tahun lalu
induk
melakukan
a8bfa74149
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      crawler-etl.sh

+ 1 - 1
crawler-etl.sh

@@ -17,7 +17,7 @@ deploy() {
 start() {
     CID=$(docker ps -a | grep crawler-etl | awk '{print $1}')
     if [ ! $CID ]; then
-        docker run --cap-add=SYS_PTRACE -d -it --restart=always --name crawler-etl registry-vpc.cn-hangzhou.aliyuncs.com/stuuudy/crawler-etl-server:$1
+        docker run --cap-add=SYS_PTRACE -d -it --restart=always --name crawler-etl -P registry-vpc.cn-hangzhou.aliyuncs.com/stuuudy/crawler-etl-server:$1
         echo "crawler-etl 启动"
     else
         echo "crawler-etl 容器已经存在"