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. For that, you would issue 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