ssh using socket w/ docker for mac

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

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

  • Wildfly/Jboss-v10 is not working in cluster mode with docker swarm
  • Update shared volume from data container
  • Why Docker/Containers has it's own networking concept(CNM/CNI) instead of using VM networking?
  • docker error Unable to locate package cowsay
  • Graylog2 Docker unable to start
  • Dockerfile CMD not accepting variables
  • 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?

  • Add a new entrypoint to a docker image
  • Docker consuming more HD memory
  • Dovecot: Kill permission denied when reloading
  • Docker data volumes and scaling in a distributed system
  • Docker compose hangs when installing kerberos
  • Docker Python set utf-8 locale
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.