Quiet wait for Docker
@@ -11,10 +11,10 @@ sudo /bin/chmod 544 /Library/PrivilegedHelperTools/com.docker.vmnetd
sudo /bin/chmod 644 /Library/LaunchDaemons/com.docker.vmnetd.plist
sudo /bin/launchctl load /Library/LaunchDaemons/com.docker.vmnetd.plist
-/Applications/Docker.app/Contents/MacOS/Docker --unattended &
+/Applications/Docker.app/Contents/MacOS/Docker --unattended &>/dev/null &
retries=0
-while ! docker info 2>/dev/null ; do
+while ! docker info &>/dev/null ; do
sleep 5
retries=`expr ${retries} + 1`
@@ -22,7 +22,7 @@ while ! docker info 2>/dev/null ; do
echo 'Docker still running'
else
echo 'Docker not running, restart'
- /Applications/Docker.app/Contents/MacOS/Docker --unattended &
+ /Applications/Docker.app/Contents/MacOS/Docker --unattended &>/dev/null &
fi
if [[ ${retries} -gt 30 ]]; then
