Commit a712ee3c4d860fc5b6ade1fad489986cd4b8069d

Authored by George Vlahavas
1 parent 08d6788d92

Remove volumes on delete

Showing 1 changed file with 5 additions and 0 deletions

1 1 #!/bin/bash
2 2 # Stop containers and removes containers, networks, volumes, and images
3 3 docker-compose -f docker-compose-jfrog.yml down
  4 +docker volume ls | \
  5 + grep kea_ | \
  6 + tr -s ' ' | \
  7 + cut -d' ' -f2 | \
  8 + xargs docker volume rm
4 9  
5 10 # Wait a bit
6 11 sleep 5s