Public | Automated Build

Last pushed: 6 days ago
Short Description
Ubuntu + systemd + SSH
Full Description

solita/ubuntu-systemd-ssh

solita/ubuntu-systemd + an SSH server.

Supported tags

  • latest, 16.04

Running

See the sections Configuring the Docker host and Running in the README of solita/ubuntu-systemd, on which this image is based.

License

Copyright © 2016 Solita. Licensed under the MIT license.

Docker Pull Command
Owner
solita
Source Repository

Comments (1)
bk322
a year ago

Hi,

I wanted to use docker as an machine container with its own systemd service. So I tried to start this with

docker run \
  --security-opt seccomp=unconfined \
  --stop-signal=SIGRTMIN+3 \
  --tmpfs /run \
  --tmpfs /run/lock \
  -v /sys/fs/cgroup:/sys/fs/cgroup:ro \
  -t -i solita/ubuntu-systemd-ssh

I don't get bash prompt.

If I specify the prompt with:

docker run \
  --security-opt seccomp=unconfined \
  --stop-signal=SIGRTMIN+3 \
  --tmpfs /run \
  --tmpfs /run/lock \
  -v /sys/fs/cgroup:/sys/fs/cgroup:ro \
  -t -i solita/ubuntu-systemd-ssh /bin/bash

I don't seem to have systemd working:

root@container-id:/# systemctrl status sshd
Failed to connect to bus: No such file or directory

What do I do wrong?