ssh using socket w/ docker for mac

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

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

  • Docker and Cloudera Quick start: How to run own jar-file?
  • DockerFile / Switch from ubuntu:latest to alpine:3.3
  • docker machine (virtualbox vm) export container port to host machine fail
  • Docker containers with one public IP
  • How to include files outside of Docker's build context?
  • How can RabbitMQ clusters recognise Docker's container restarts?
  • 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?

  • Why does a 'docker push' to repository leads to multiple pushes of images
  • How to access container (SkyDns) via exposed port at 172.17.42.1:53:53/udp (docker0) from another container? Docker 1.7.1, Centos 7
  • Docker multi container networking on same host
  • Fig up error exec: “bundle”: executable file not found in $PATH
  • Docker Compose to CoreOS
  • Send a wake on lan packet from a docker container
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.