rollback.sh 243 B

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