Category : systemd-journald

I want to access host system systemd services, get the status of host system systemd service, restart the services. Dockerfile: FROM ubuntu:18.04 RUN apt update RUN apt install -y init systemd systemd-sysv dbus dbus-user-session STOPSIGNAL SIGRTMIN+3 ENTRYPOINT ["/sbin/init"] Docker run command: sudo docker run –name test-systemd-cont -d –cap-add=SYS_ADMIN -v /sys/fs/cgroup/:/sys/fs/cgroup -v /proc:/proc -v /usr/lib/systemd:/usr/lib/systemd -v ..

Read more