You need to pass the certificates that container will use to connect the remote server:
docker build -t dcoppari/magictunnel .In order to run image you must set the environment variables where the image will connect to forward the port
docker run --rm -d -p "80:80" \
--env SSH_PRV_KEY="$(cat ~/.ssh/id_rsa)" \
--env SSH_USER="root" \
--env SSH_HOST="some.remote-server.com" \
--env SSH_PORT="22" \
--env REMOTE_PORT="80"You now can make a curl request to test if the service is working as spected
curl http://localhot:80