Docker for mac via homebrew

broken image
broken image

The eval $(docker-machine env default) line needs to be run before you use docker run you may want to put it in your ~/.bashrc.The brew install virtualbox command requires intervention in the “System Preferences” -> “Security & Privacy”: you need to give permission for the installation.# Run this to set environment before running docker Sudo dseditgroup -o edit -a price -t user docker So here’s how I installed Docker using Homebrew and used it to run the latest version of the LSST stack: brew install dockerīrew install virtualbox # Requires SystemPreferences interventionĭocker-machine create default -virtualbox-cpu-count 6 -virtualbox-memory 8192 I use Homebrew on my Mac, and prefer to use that instead of downloading images from various vendors. However, I’ve been wanting more recent images for developing on master, and I’d like to be able to stay up to date with the stack without much effort, so when mentioned some Docker problems in Slack, it triggered an interest in getting that working on my Mac. I haven’t updated the stack build on my Mac for quite some time, as it takes a while.