Running Docker on macOS

I use the docker+dlite method, which is fast and works fine for me. I haven’t tried the official macOS binaries yet.

This manual is outdated. See the latest version for getting docker up and running.

$ brew install docker dlite
$ sudo dlite install
$ dlite start
$ ssh docker@local.docker

If connecting is not working, reinstalling did the thing.

$ dlite stop
$ sudo dlite uninstall
$ sudo rm /var/run/docker.sock

Connection should be fine now.

If docker fails with the error message “Error response from daemon: client is newer than server (client API version: 1.24, server API version: 1.22)”, try setting the environment variable to the given server version DOCKER_API_VERSION=1.22.