Public Repository

Last pushed: a year ago
Short Description
CentOS 7 image for 2016 Hack Day - has systemd, sshd installed and enabled
Full Description

Dockerfile

Run container in a CentOS 7 host with:

$ docker run -ti -d -P --privileged --name test_sshd -v /sys/fs/cgroup:/sys/fs/cgroup:ro -v /tmp/$(mktemp -d):/run ravik694/c7-systemd-sshd

Locate the container's IP address with:

$ docker inspect test_sshd | grep '"IPAddress":'

Connect to the container with SSH from the host (the root password is set to a default of 'toor' and should be changed:

$ ssh root@<ip_address>
[root@4b162f189534 ~]# passwd
Docker Pull Command
Owner
ravik694