File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -33,8 +33,13 @@ EXTRA_START_ARGS=""
33
33
EXPECTED_DEFAULT_DRIVER=" hyperkit"
34
34
35
35
36
- # restart docker on mac for a fresh test
37
- osascript -e ' quit app "Docker"' ; open -a Docker ; while [ -z " $( docker info 2> /dev/null ) " ]; do printf " ." ; sleep 1; done ; echo " " || true
36
+ # fix mac os as a service on mac os
37
+ # https://github.com/docker/for-mac/issues/882#issuecomment-506372814
38
+ osascript -e ' quit app "Docker"' ;
39
+ sudo /Applications/Docker.app/Contents/MacOS/Docker --quit-after-install --unattended || true
40
+ # repeating without sudo because https://github.com/docker/for-mac/issues/882#issuecomment-516946766
41
+ /Applications/Docker.app/Contents/MacOS/Docker --quit-after-install --unattended || true
42
+ osascript -e ' quit app "Docker"' ; /Applications/Docker.app/Contents/MacOS/Docker --unattended &; while [ -z " $( docker info 2> /dev/null ) " ]; do printf " ." ; sleep 1; done ; echo " " || true
38
43
39
44
mkdir -p cron && gsutil -qm rsync " gs://minikube-builds/${MINIKUBE_LOCATION} /cron" cron || echo " FAILED TO GET CRON FILES"
40
45
install cron/cleanup_and_reboot_Darwin.sh $HOME /cleanup_and_reboot.sh || echo " FAILED TO INSTALL CLEANUP"
You can’t perform that action at this time.
0 commit comments