Public Repository

Last pushed: 2 years ago
Short Description
Base CentOS 7 image for 2016 Hack Day - has systemd, sshd, and mariadb-server installed and enabled
Full Description


Run container in a CentOS 7 host with:

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

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

Connect to the mariadb server from a remote host with:

$ mysql -h <ip address> --user=docker --password=docker
Docker Pull Command