If you run this command sequence, note that you’re running the VirtualBox Docker Toolbox VM setup, not the Docker for Mac beta any more. This probably comes with things like an older Docker daemon (the Docker for Mac beta package is now shipping with a beta release of Docker too). So, when docker says…
you just need to
export DOCKER_API_VERSION=1.23
I don’t know why the Docker client doesn’t automatically downgrade to an older protocol version; it’s clearly capable of speaking the older version and knows from the startup sequence what version the daemon wants.
I did a shutdown and I got the same error. I repeat the steps and it went back to normal.
Do I have to repeat these commands every day from now on?? C’mon…