Since boot2docker is deprecated I\'ve switched to docker-machine but I don\'t know how to open a port from docker-machine. In bo
boot2docker
docker-machine
bo
If you don't want the need to use passwords, I would add that you should just point to the private key.
ssh -L 8080:localhost:8080 -i ~/.docker/machine/machines/default/id_rsa docker@$(docker-machine ip default)