blob: 2c46439e3d330b6e4e5385e6c00363be801b8016 [file] [log] [blame]
#!/usr/bin/env bash
running_containers=$(docker ps --filter name=dfc_ -qa)
running_images=$(docker images -q)
if [ -z "$running_containers" ]
then
echo "No container requires termination"
else
echo "Stopping and removing containers"
docker stop $running_containers
docker rm $running_containers
docker rmi $running_images
fi