SHARE
TWEET

Untitled

a guest May 16th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. # Delete all containers
  3. docker rm $(docker ps -a -q)
  4. # Delete all images
  5. docker rmi $(docker images -q)
  6. #kill containers
  7. docker kill $(docker ps -q)
  8. #stop the remaining running containers
  9. docker stop $(docker ps -a -q)
  10. #force recreating/building containers
  11. docker-compose up -d --force-recreate --build
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top