Public | Automated Build

Last pushed: 5 months ago
Short Description
ubuntu-systemd + an SSH server.
Full Description

vkill/ubuntu-systemd-sshd

solita/ubuntu-systemd + an SSH server.

Supported tags

  • latest

Running

For Docker

$ touch ~/.ssh/authorized_keys
$ chmod 600 ~/.ssh/authorized_keys
$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
$ docker run -it --rm --name systemd-sshd --security-opt seccomp=unconfined --tmpfs /run --tmpfs /run/lock -v /sys/fs/cgroup:/sys/fs/cgroup:ro -v /var/run/sshd_docker:/var/run/sshd -v ~/.ssh/authorized_keys:/root/.ssh/authorized_keys -d vkill/systemd-sshd
$ docker exec systemd-sshd systemctl status
$ docker exec systemd-sshd ps aux

For Docker Compose

Ref

Test

$ git clone git@github.com:vkill/docker-systemd-sshd.git
$ cd docker-systemd-sshd

$ docker-compose up -d

$ docker-compose exec sshd systemctl status

$ docker-compose exec sshd ps aux

$ ssh root@10.0.99.2

License

MIT / BSD

Author Information

vkill vkill.net@gmail.com

© 2017

Docker Pull Command
Owner
vkill
Source Repository

Comments (0)