Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
dc8a770713
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
executable file 10 lines (8 sloc) 214 Bytes
#!/bin/bash
result=$(docker volume ls | grep mysql | awk '{print $2}')
laststatus="$?"
if [ ! "$result" == "" ]; then
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker volume rm $result
fi