Docker for Mac does not use the normal tcp network for ssh, but you can connect to the unix socket on your Mac using:
screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
and log in as root
This seems pretty undocumented, so YMMV - it worked for me in version 1.12.0-rc3-beta18 - it may change in future versions.
source share