You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
277 B

4 years ago
  1. #!/bin/bash
  2. . ./_docker-cmd.sh || {
  3. echo "no docker cmd is presented" && exit 1
  4. }
  5. CONTAINER=$(docker ps | grep nginx | awk '{print $1}')
  6. if [[ -z "${CONTAINER}" ]]; then
  7. echo "Unable to find container: nginx"
  8. exit 1
  9. fi
  10. $DOCKER_CMD exec -ti ${CONTAINER} nginx -s reload