Skip to main content

Install Cockpit

You may want to treat this more like Docker to where, instead of installing this in a docker, install this on the locale machine next to docker as It needs some parts local OS to function with. 

Install into your local machine:

sudo apt-get install cockpit -y

Once the installation completes, start and enable Cockpit with:

sudo systemctl enable --now cockpit.socket

Now that Cockpit is installed and running, you can log in.

However, depending on how your system is set up, you’ll want to make sure the user you log into Cockpit with has sudo privileges. Only do this if: your machine does not already have a user with sudo privileges. 

To change to sudo privileges, enter the command:

sudo usermod -aG sudo USER-NAME-HERE


If you want Container support;

 you need to install podman.

sudo apt-get install podman cockpit-podman -y

Start and enable Podman with:

sudo systemctl enable --now podman

 

Source:
https://www.techrepublic.com/article/install-cockpit-ubuntu-better-server/