run.sh 401 B

123456789
  1. name="admin-api"
  2. ip="172.17.0.1"
  3. port=8088
  4. docker stop ${name} && docker rm ${name} && docker rmi ${name}
  5. docker pull sgccr.ccs.tencentyun.com/game/${name}:latest
  6. docker tag sgccr.ccs.tencentyun.com/game/${name}:latest ${name}:latest
  7. docker rmi sgccr.ccs.tencentyun.com/game/${name}:latest
  8. docker run -it -d --restart=always -e IP=${ip} -v /data/log:/var/log --name=${name} -p ${port}:${port} ${name}