Install Nanocl on Debian / Ubuntu
This section contains required procedures to install Nanocl on Debian / Ubuntu.
OS requirements
Nanocl have been tested on one of the Ubuntu 64-bit versions listed below:
- Ubuntu Jammy 22.04 (LTS)
- Ubuntu Impish 21.10
- Ubuntu Focal 20.04 (LTS)
- Ubuntu Bionic 18.04 (LTS)
But it can be installed on any debian based distribution. Only the CLI (nanocl) is installed from our repository, the rest of the components are running inside containers and are available where docker is available.
Installation methods
You can install Nanocl in different ways, depending on your needs:
-
Most users set up Next Hat’s repositories and install from them, for ease of installation and upgrade tasks. This is the recommended approach.
-
Some users download the DEB package and install it manually and manage upgrades completely manually. This is useful in situations such as installing Nanocl on air-gapped systems with no access to the internet.
Install using the repository
-
Update the
apt
package index and install packages to allowapt
to use a repository over HTTPS :sudo apt-get update
sudo apt-get install \
ca-certificates \
curl \
gnupg \
lsb-release -
Add Next hat's official GPG key :
sudo mkdir -p /etc/apt/keyrings
curl -fsSL https://download.next-hat.com/repo/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/next-hat.gpg -
Use the following command to set up the repository :
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/next-hat.gpg] https://download.next-hat.com/repo/linux/ubuntu stable main" \
| sudo tee /etc/apt/sources.list.d/next-hat.list > /dev/null -
Update the
apt
package index, and install the latest version of Nanoclsudo apt-get update
sudo apt-get install -y nanoclAlternativatly you can install c2ncl to convert existing
docker-compose
to NanoclStatefile
sudo apt install -y c2ncl
Receiving a GPG error when running apt-get update
?
Your default umask may not be set correctly, causing the public key file for the repo to not be detected.
Run the following command and then try to update your repo again :
sudo chmod a+r /etc/apt/keyrings/next-hat.gpg
You are almost done ! To continue see our post installation guide