adding check if docker is already running

pull/11448/head
Sharif Elgamal 2021-05-20 15:31:31 -07:00
parent 2620012bed
commit 40fd08e5fa
1 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,11 @@
set -x
if docker system info > /dev/null 2>&1; then
echo "Docker is already running, exiting"
exit 0
fi
# kill docker first
osascript -e 'quit app "Docker"'