Skip to content
Follow
Ubuntu Linux

How to Install Incus Container in Ubuntu Linux

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

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

You can use Incus on a single desktop or scale it up to run 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`.

Install Incus container on Ubuntu Linux

Installing an Incus container on Ubuntu Linux involves first adding the necessary tools to your system. Completing these steps prepares the Incus container for efficient application management.

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.

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

Then, create a repository file.

🐧Bash / Shell
sudo nano /etc/apt/sources.list.d/zabbly-incus-stable.sources

Copy the content provided and paste it into this file.

💻Code
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.

🐧Bash / Shell
sudo apt update
sudo apt install incus

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

💻Code
incus version
incus --help

Removing the Incus container requires running the command below.

🐧Bash / Shell
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.

Conclusion:

  • 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.

📚 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 *