Defining Startup Apps on MacOS
One particular annoyance I've had lately is seeing:
Cannot connect to the Docker daemon. Is 'docker daemon' running on this host?
when I run a Docker command in the CLI.
This stems from Docker Desktop not running.
I'm a developer!
I always want it running!!
I like to version control my setup, so I added the following line to always start Docker Desktop on startup:
osascript -e 'tell application "System Events" to make login item at end with properties {name:"Docker", path:"/Applications/Docker.app", hidden:false}'
Now my .macos settings are slightly better :D