Skip to content

Installing Znuny on Ubuntu with Docker

This guide installs Docker and Docker Compose on Ubuntu so you can run Znuny using the Docker Compose installation.

  • Ubuntu 20.04 LTS
  • Ubuntu 22.04 LTS
  • Ubuntu 24.04 LTS

Newer releases generally work if a current Docker version is available.

ComponentMinimumRecommended
CPU2 cores4+ cores
RAM4 GB8 GB or more
Disk20 GB free40 GB+ (SSD)
Docker20.10latest
Docker Composev2latest
Git2.17latest

Step 1: Install Docker, Docker Compose, and Git

Section titled “Step 1: Install Docker, Docker Compose, and Git”

Update package sources and install:

Terminal window
sudo apt update
sudo apt install -y docker.io docker-compose-v2 git

[!NOTE] The docker-compose-v2 package is available from Ubuntu 22.04 onwards. On older versions, install the official Docker repository or use the legacy docker-compose package.

Enable and start Docker:

Terminal window
sudo systemctl enable --now docker

Optional — run Docker without sudo (log out and back in afterwards):

Terminal window
sudo usermod -aG docker $USER

Verify:

Terminal window
docker --version
docker compose version

Continue with the full stack setup:

Installing Znuny with Docker Compose

That guide clones a community compose project, configures MariaDB, runs the web installer at /znuny/installer.pl, and covers volumes, updates, and troubleshooting.

For production on bare metal, follow the official Znuny installation guide for Apache, MariaDB, and Perl modules on Ubuntu.

Frequently asked questions

Which Ubuntu versions are supported for Znuny with Docker?

Ubuntu 20.04 LTS, 22.04 LTS, and 24.04 LTS are supported. Newer releases generally work if a current Docker version is available.

How do I install Docker Compose on Ubuntu for Znuny?

Use apt to install docker.io, docker-compose-v2, and git, then enable the Docker service. On Ubuntu 20.04 you may need the official Docker repository or the legacy docker-compose package.