FROM ubuntu:18.04 RUN apt-get update # Set noninteractive installation ARG DEBIAN_FRONTEND=noninteractive ENV TZ=Australia/Brisbane # Install a shell so we can log in and check the container RUN apt-get install -y bash # Install apache RUN apt-get install -y apache2 # Install cockpit RUN apt-get install -y cockpit cockpit-docker # Install sshd RUN apt-get install -y ssh # Prepare services RUN rm -rf /etc/dbus-1 RUN mkdir /run/sshd RUN mkdir /var/run/dbus ENTRYPOINT (rm /var/run/dbus/pid || true) && /usr/sbin/sshd && dbus-daemon --system && /usr/sbin/remotectl certificate --ensure --user=root --group=cockpit-ws --selinux-type= && /usr/lib/cockpit/cockpit-ws -p 9092