docker centos 7 sshd
10K+
Base SSHD image via base systemd image.
docker pull lloydbenson/docker-centos-7-sshd
Your custom base image should have:
RUN /install_sshd.sh
CMD ["/usr/sbin/init" ]
At the bottom. By default this will generate a root password and you can see the password generated. You can pass ENVIRONMENT variables of:
AUTHORIZED_KEYS
which puts this into /root/.ssh/authorized_keys
or if you prefer
ROOT_PASS
which will generate a custom password for root
Note: If you use AUTHORIZED_KEYS ROOT_PASS is ignored.
docker run -dt --priviledged=true --name=sshd lloydbenson/docker-centos-7-sshd
docker logs sshd
to get the default password if you didnt pass in a KEY
Content type
Image
Digest
sha256:7e7c39f1f…
Size
142.2 MB
Last updated
almost 11 years ago
docker pull lloydbenson/docker-centos-7-sshd