This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function run_docker_on_mac_if_not_running() { | |
echo "docker starting" | |
if (! docker stats --no-stream ); then | |
echo "Opening docker" | |
# Change location of app if different | |
open /Applications/Docker.app | |
# Wait until Docker daemon is running and has completed initialisation | |
while (! docker stats --no-stream ); do |