rollback.sh 224 B

123456
  1. #!/bin/sh
  2. CONTAINER_NAME=dingtalk_cms
  3. TAG=$1
  4. docker stop "${CONTAINER_NAME}" && docker rm -f "${CONTAINER_NAME}"
  5. docker run --name "${CONTAINER_NAME}" --restart=unless-stopped --network=host -d "${CONTAINER_NAME}":"${TAG}"