Explorar el Código

add crawler etl shell

qingqu-git hace 1 año
padre
commit
a8bfa74149
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 容器已经存在"