ssh using socket w/ docker for mac

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

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

  • How to tune/troubleshoot/optimize docker block i/o on AWS
  • Unable to install docker on a fresh debian 8 jessie
  • how to stop solr in standard way within docker
  • Increase the disk size of docker (Error: Insufficient space)
  • How to map a file in a docker volume
  • what is the alpine linux equivalent package of ubuntu's libarmadillo-dev? [closed]
  • 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?

  • Assign labels to Docker daemon
  • If a service is started during docker build, should it be running at runtime?
  • Is Docker ARG allowed within CMD instrcution
  • Basic Docker container reports runlevel unknown
  • How to fix “invalid network mode default” when starting docker image
  • How to get docker volumes from newly built image?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.