Sign inSign up

stocard/gotthard

By stocard

•Updated almost 8 years ago

A container that exposes remote ports to your containers via ssh local forwarding.

Image
1

10K+

stocard/gotthard repository overview

⁠Gotthard

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:

  • Specify these the following way: JUMP_USER@JUMP_HOST
  • You can also specifiy multiple comma-seperated jump-hosts: JUMP_USER1@JUMP_HOST1,JUMP_USER2@JUMP_HOST2

⁠Examples

Suppose we want to expose PORT 8080 and 8081 to the containers in our network.

⁠bash:
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
⁠docker-compose:
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.

Tag summary

Content type

Image

Digest

Size

4.3 MB

Last updated

almost 8 years ago

docker pull stocard/gotthard