diff --git a/Dockerfile.cockpit b/Dockerfile.cockpit index 7495a0b..1ed4f1f 100644 --- a/Dockerfile.cockpit +++ b/Dockerfile.cockpit @@ -16,12 +16,27 @@ # 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 + +# Prepare services +RUN rm -rf /etc/dbus-1 +RUN mkdir /var/run/dbus +RUN dbus-daemon --system +RUN /usr/sbin/remotectl certificate --ensure --user=root --group=cockpit-ws --selinux-type= + +# Start the service +RUN /usr/lib/cockpit/cockpit-ws -p 9092 + # Enable the services # RUN apt-get install -y systemd # RUN systemctl enable apache2 # RUN systemctl enable cockpit.socket -# Add a user # RUN adduser jryland