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
228 B

  1. #!/bin/bash
  2. export COMPOSE_HTTP_TIMEOUT=600
  3. # pull new images
  4. docker-compose pull
  5. # restart container
  6. docker-compose down
  7. docker-compose up -d
  8. docker images --quiet --filter=dangling=true | xargs --no-run-if-empty docker rmi