4. Install Docker Example (Mac): cd ~/Applications sudo port selfupdate sudo hdiutil attach ~/Downloads/Docker.dmg sudo /Volumes/Docker/Docker.app/Contents/MacOS/install Skip this step if Docker is already installed.