SSH into Docker containers by name
Henrik Mühe
I hacked together an SSH proxy so that you can direct SSH into docker containers using their name. It’s on github, excerpt from the README:
Allows connecting to all your local docker containers using ssh simply like this:
ssh container-name.docker
if container-name is the name of the container and ssh is running in it. Automatically install for the current user using
curl -s https://raw.githubusercontent.com/henrik-muehe/docker-ssh/master/install | /bin/bash
Enjoy!