Docker alpine container with rsync && ssh
586
Useful for deployment.
If you want to do something on server with your private key and login, you can use this command
docker run --rm \
-v ~/.ssh/id_rsa:/root/.ssh/id_rsa \
bolid1/docker-alpine-rsync-openssh \
ssh -l bolid1 myserver.com 'cd /srv && ls -la'
At path ~/.ssh/id_rsa stored your private key
Option -l bolid1 used for setup your login
Argument myserver.com - address of your server
Last argument 'cd /srv && ls -la' - command to execute on server
If you want to connect to your server with your private key and login, you can use this command
docker run --rm \
-it \
-v ~/.ssh/id_rsa:/root/.ssh/id_rsa \
bolid1/docker-alpine-rsync-openssh \
ssh -l bolid1 myserver.com sh
Option -it required when you want to interact with server shell
At path ~/.ssh/id_rsa stored your private key
Option -l bolid1 used for setup your login
Argument myserver.com - address of your server
Last argument sh - command to start shell
Content type
Image
Digest
Size
5.2 MB
Last updated
about 6 years ago
docker pull bolid1/docker-alpine-rsync-openssh