ssh using socket w/ docker for mac

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

  • 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 “” 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
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.