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 # Add a user that can login as # RUN useradd jryland -p '$6$QrZwBlg3$sVyhGQXb57qb7xoVJGu08LjfDYbsvc0CFN8HdEC22NSaBN1Q8cXnaQLPZi31mpI3EhHRqAp9pTp9ZWT7chDOY0' # RUN usermod -aG sudo jryland # RUN usermod -aG docker jryland # Prepare services # RUN rm -rf /etc/dbus-1 # RUN mkdir /var/run/dbus # RUN /usr/sbin/remotectl certificate --ensure --user=root --group=cockpit-ws --selinux-type= # Start the service # ENTRYPOINT rm /var/run/dbus/pid && dbus-daemon --system && chown root:docker /var/run/docker.sock && /usr/lib/cockpit/cockpit-ws -p 9092 ENTRYPOINT /usr/sbin/remotectl certificate --ensure --user=root --group=cockpit-ws --selinux-type= && /usr/lib/cockpit/cockpit-ws -p 9092