Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bitrise-io/bitrise-docker-ssh
https://github.com/bitrise-io/bitrise-docker-ssh
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bitrise-io/bitrise-docker-ssh
- Owner: bitrise-io
- License: mit
- Created: 2017-12-05T23:43:32.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-14T09:14:09.000Z (about 5 years ago)
- Last Synced: 2024-07-31T14:09:09.994Z (4 months ago)
- Language: Dockerfile
- Homepage:
- Size: 3.91 KB
- Stars: 2
- Watchers: 11
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://discuss.bitrise.io/c/feature-request)
[Report an issue](https://discuss.bitrise.io/c/issues/other-issues)