Skip to content

Instantly share code, notes, and snippets.

@greg-hellings
Created July 26, 2018 19:38
Show Gist options
  • Save greg-hellings/211f21847818ba836102ef0981d132ca to your computer and use it in GitHub Desktop.
Save greg-hellings/211f21847818ba836102ef0981d132ca to your computer and use it in GitHub Desktop.
$ docker run -t centos:7 /usr/lib/systemd/systemd --system
^C
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3ce1f1998396 centos:7 "/usr/lib/systemd/..." 28 seconds ago Up 27 seconds musing_kare
$ docker exec -it musing_kare /bin/bash
[root@3ce1f1998396 /]# yum install openssh-server
<snip>
[root@3ce1f1998396 /]# systemctl start sshd.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment