PrimeHub runs on Kubernetes, so you’ll need to install a container runtime to help manage and run your containers.
In this section, you will do the following.
You can skip this part and move on to configure your container registry. Microk8s ships with containerd as its container runtime.
We recommend installing Docker, especially if you plan to use Harbor as a private container registry. However, containerd is also supported.
Docker provides a convenient script at get.docker.com to install Docker or you can use the following methods to install Docker for different Linux distros.
Install required Linux packages
sudo apt-get install ca-certificates curl gnupg lsb-release
Create keyring folder
sudo mkdir -p /etc/apt/keyrings
Create gpg key for docker repository
curl -fsSL <https://download.docker.com/linux/ubuntu/gpg> | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
Add repository for docker
sudo echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] <https://download.docker.com/linux/ubuntu> $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null