ssh using socket w/ docker for mac

I was trying to get working or adapt the following recipe:

https://gist.github.com/rcoup/53e8dee9f5ea27a51855

  • What is a good use case for kubernetes pod? [closed]
  • How to change docker bridge address space (subnet)?
  • Launching run docker from cloud-init incorrectly prefixes “docker.io” to image name
  • Bluemix Kubernetes docker deployment query
  • Install/Start YARN in Docker
  • mysqli not found in (php-fpm) docker container
  • in order to use ssh in docker in a secure way. Unfortunately on the line:

    B2D_AGENT_SOCK=$(ssh -S $SSH_SOCK docker@localhost echo \$SSH_AUTH_SOCK)
    

    I get asked for a password for docker@localhost. What could this be in hyperkit?

  • How can I start php-fpm in a Docker container by default?
  • Why does “docker push” push several images and where?
  • Block port from the outside except for Docker
  • GitLab CI Docker CakePHP 2 testing doesn't work
  • Bash script fails to run node on docker image
  • Oauth2 with hub.docker.com
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.