Sign inSign up

bitriseio/bitrise-docker-ssh

By bitriseio

Updated almost 8 years ago

SSH server with `docker` installed in it, to be used as a "jumper".

Image
0

477

bitriseio/bitrise-docker-ssh repository overview

README

SSH server with docker installed in it. Can be used as a "jumper" to e.g. docker exec into another container.

Example:

docker run -d -p 2222:22 -v /var/run/docker.sock:/var/run/docker.sock -v /path/to/dir/with/authorized_keys:/root/.ssh bitrise-docker-ssh:latest

Simple mount a dir with an authorized_keys like:

command="docker exec -it bitrise-main-container bash" ssh-rsa AAA...t

Then, if you SSH into this image (in the above example, ssh into the 2222 port) you'll automatically get docker exec-d into the other container (in this example the one running with a name bitrise-main-container).

Request a feature

Report an issue

Tag summary

Content type

Image

Digest

Size

184.6 MB

Last updated

almost 8 years ago

docker pull bitriseio/bitrise-docker-ssh