Ubuntu continer wit enable ssh service.
Use container as Jenkins/Ansible client.
Command to launch container:
$ docker pull iservermate/client:
client: $docker run --name client -h client -it -v ./hosts:/etc/hosts:rw -d iservermate/client:v2 /bin/bash -c "/usr/sbin/sshd -D"
client1: $docker run --name client2 -h client2 -it -v ./hosts:/etc/hosts:rw -d iservermate/client:v2 /bin/bash -c "/usr/sbin/sshd -D"
client2: $docker run --name client2 -h client2 -it -v ./hosts:/etc/hosts:rw -d iservermate/client:v2 -p 2222:22 /bin/bash -c "/usr/sbin/sshd -D"
$SSh to client2: ssh jenkins@localhost -p 2222
Content type
Image
Digest
sha256:29d309a9f…
Size
129.9 MB
Last updated
10 months ago
docker pull iservermate/client:v2