atishoo/ssh-agent

By atishoo

Updated 4 months ago

a jenkins ssh agent, and you can use docker in this image

Image
Developer Tools
0

91

Jenkins SSH Agent

You can use docker、curl、wget、aliyun cli and connect this container by ssh private key.

Run a container

docker run -d --privileged --restart=always \
    --name jenkin-agent \
    -p <your_local_port>:22 \
    -e "JENKINS_AGENT_SSH_PUBKEY=<public_key>" \
    -e "DOCKER_REGISTRY_MIRROR=<docker_registry_mirror>" \
    atishoo/ssh-agent[:tag]

default user is root!

Connect it

you can connect by ssh via ssh -i you_inditify -p port root@127.0.0.1

Docker Pull Command

docker pull atishoo/ssh-agent