Skip to content
Follow
Ubuntu Linux

How to Install Incus Container in Ubuntu Linux

Richard
Written by
Richard
Nov 2, 2023 Updated Sep 15, 2026 2 min read
How to Install Nextcloud AIO on Ubuntu Linux
How to Install Nextcloud AIO on Ubuntu Linux

Incus container management in Ubuntu Linux lets you run isolated containers and virtual machines on the same computer using a free system tool. Forked from the LXD project, Incus keeps different apps completely separate so they never interfere with each other.

Advertisement

You can run Incus on a single desktop or scale it up across massive server setups using LXC and QEMU technology. Setting it up takes just a few steps in your Ubuntu terminal.

⚡ Quick Answer

Install Incus by first adding its repository to your system. Run `sudo apt update` and `sudo apt install incus` to install the software. Verify the installation with `incus version`.

Advertisement

Install Incus container on Ubuntu Linux

To install Incus container on Ubuntu Linux, you need to add the official software repository and download the security key so your system trusts the software package. This setup process adds the required tools and prepares your system to run and manage Linux containers properly from the command line.

First, install the necessary prerequisites with the command below.

First, download Incus’s repository GPG key. Downloading the Incus repository GPG key provides a cryptographic digital signature, ensuring packages arrive directly from the Incus project without tampering.

sudo curl -fsSL https://pkgs.zabbly.com/key.asc -o /etc/apt/keyrings/zabbly.asc

Then, create a repository file.

Advertisement
sudo nano /etc/apt/sources.list.d/zabbly-incus-stable.sources

Copy the content provided and paste it into this file.

Enabled: yes
Types: deb
URIs: https://pkgs.zabbly.com/incus/stable
Suites: jammy
Components: main
Signed-By: /etc/apt/keyrings/zabbly.asc

Remember to replace the highlighted placeholder with your Ubuntu version's codename. Finding this codename happens inside the /etc/os-release file.

Finally, update your system and install Incus using the command below.

sudo apt update
sudo apt install incus

Once installed, use the command below to verify that Incus is available on Ubuntu.

Advertisement
incus version
incus --help

Removing the Incus container requires running the command below.

sudo apt remove --autoremove incus
sudo rm /etc/apt/sources.list.d/zabbly-incus-stable.sources
sudo rm /etc/apt/keyrings/zabbly.asc

Completing these actions finishes the setup.

For more information and help creating instances, follow the link below.

Advertisement

Incus provides a lightweight, open-source solution for managing containers and virtual machines in Ubuntu Linux.

  • The Incus Container provides a lightweight, open-source solution for managing containers and virtual machines in Ubuntu Linux.
  • Its seamless cloud-like experience enables scaling from a developer's laptop to a cluster of up to 50 servers.
  • Following the steps, users can easily install and utilize the Incus Container for efficient application management.
  • For additional guidance on creating instances and further information, visit the Incus Containers page.

What is the difference between Incus container and virtual machine?

When running an application container, Incus isolates applications within the host's operating system using container images, much like Docker does. When running a virtual machine, Incus uses the host system's hardware, but the kernel is provided by the virtual machine.

Can Incus run Docker containers?

Docker is designed as a system for deploying disposable applications. Incus containers are not typically created as disposables, and data is retained when they are stopped. Because of the Linux kernel's nesting feature, running Docker inside Incus works successfully.

Was this guide helpful?

Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

Advertisement

📚 Related Tutorials

How to Install GNOME Desktop on Ubuntu 24.04
Ubuntu Linux How to Install GNOME Desktop on Ubuntu 24.04
How to Install KDE Desktop on Ubuntu 24.04
Ubuntu Linux How to Install KDE Desktop on Ubuntu 24.04
How to Install Ubuntu Linux
Ubuntu Linux How to Install Ubuntu Linux
How to Install Docker Ubuntu: Terminal Commands
Ubuntu Linux How to Install Docker Ubuntu: Terminal Commands

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *