A container that exposes remote ports to your containers via ssh local forwarding.
10K+
A container that exposes remote ports to your containers via ssh local forwarding.
The container will try to use all files that start with id_ as private keys.
It is also possible to use a jump hosts:
JUMP_USER@JUMP_HOSTJUMP_USER1@JUMP_HOST1,JUMP_USER2@JUMP_HOST2Suppose we want to expose PORT 8080 and 8081 to the containers in our network.
docker run \
-v ~/.ssh/:/root/.ssh/ \
-p 8080:8080 \
-p 8081:8081 \
-e USER=florian \
-e [email protected],[email protected]
-e HOST=example.org \
-e PORTS=80:8080,81:8081 \
stocard/gotthard
services:
(...)
gotthard:
image: stocard/gotthard
environment:
- USER=user
- HOST=example.org
- JUMP_HOSTS=my.jump_host.example.org
- PORTS=80:8080,81:8081
volumes:
- ~/.ssh/id_rsa:/root/.ssh/id_rsa
Your containers can now use gotthard:80 or gotthard:81 to talk to the remote server.
Content type
Image
Digest
Size
4.3 MB
Last updated
almost 8 years ago
docker pull stocard/gotthard