You crazy? ok:
docker run --privileged -v /sys/fs/cgroup:/sys/fs/cgroup:ro -p 2222:22 michaelneale/arch_sshd_systemd
you can then ssh to root on port 2222.
This uses systemd to start services - including sshd.
The dockerfile for this:
https://gist.github.com/michaelneale/bb5121ace25003ee7704 the CMD launched is systemd
Content type
Image
Digest
sha256:2d96c99f9…
Size
99 MB
Last updated
almost 11 years ago
docker pull michaelneale/arch_sshd_systemd