Online Life Guide

Install Nextcloud All-in-One on Linux with Docker: the official steps, explained

Nextcloud's own walkthrough gets a private cloud running on a spare PC or server in about an hour. Here are the steps, the requirements, and the two choices that matter most: your domain and your backups.

By Andrew Ingleton · Published

Nextcloud All-in-One installation on Linux featured image
Nextcloud All-in-One on Linux © Nextcloud GmbH

Nextcloud published a step-by-step guide on 2 November 2026 for installing its All-in-One (AIO) image on Linux with Docker. AIO bundles Nextcloud and its supporting services (database, web server, optional add-ons) behind a single management interface. This guide follows the official steps and adds the points that most often trip people up.

What you need

  • A Linux PC or server (the official example uses Ubuntu 24.04 LTS) with at least 4 GB of RAM and two cores.
  • An x86_64 or ARM64 processor. An SSD is recommended; hard drives work but are slower; SD cards are not recommended.
  • A domain you own, or a free subdomain from deSEC.
  • The ability to open ports on your router, and no CGNAT (carrier-grade NAT) on your connection.
  • No other web server or reverse proxy already running on the machine; reverse-proxy setups are documented separately.

Step 1: install Docker

Nextcloud's guide uses Docker's convenience script. Snap-based Docker is not supported, which mostly affects Ubuntu: if docker info shows a root directory under /var/snap/docker/, install a standard Docker first.

Step 2: start the mastercontainer

You run one container, nextcloud-aio-mastercontainer, which publishes ports 80, 8080 and 8443 and mounts the Docker socket read-only; it then starts the other containers for you. Do not rename the container or its volume, because updates and built-in backups depend on those names. For anything beyond a trial, the guide recommends the example Compose file, which makes upgrades easier. If you want data stored outside the default Docker volume, set the data directory before the first install.

Step 3: open the AIO interface

Browse to https://<server-ip>:8080 using the IP address, not a domain (this avoids HSTS problems later), accept the self-signed certificate warning, and copy the passphrase shown. Store it safely. Once Nextcloud is running, you reach AIO through the admin settings in Nextcloud instead of using the passphrase directly.

Step 4: choose your domain

  • Your own domain: point a DNS record (or dynamic DNS) at your public IP and forward 443/TCP (required), optionally 443/UDP for HTTP/3, and 3478 TCP and UDP only if you enable Nextcloud Talk.
  • Free deSEC domain: register it from the start screen. No port forwarding is needed initially because the certificate uses a DNS challenge, and AIO updates the DNS record when your IP changes. It installs two community containers, Caddy (reverse proxy) and dnsmasq (so local devices can reach Nextcloud by name, which needs one router change).

Step 5 and 6: add-ons, start, log in

Pick add-ons and your time zone, then click Start containers. Downloads typically take around ten minutes or more. When setup finishes, AIO shows the admin credentials.

Step 7: backups and updates (do not skip)

  1. Enter a backup location, ideally a separate mounted drive such as /mnt/backup, or a remote Borg repository.
  2. Click Create backup and store the encryption key: without it you cannot restore.
  3. Enable daily backups. Automatic updates for containers, Nextcloud and apps require them.

Backups use BorgBackup (incremental, compressed and encrypted). Files attached through the External Storage app are not included.

Our take

AIO is the least fiddly route to a self-hosted Nextcloud, but exposing it to the internet makes you responsible for patching. Keep automatic updates on, put the backup on a different physical disk, and consider reaching it over a VPN such as Tailscale rather than opening ports if only your household uses it. We have not run through these steps ourselves for this article; they come from Nextcloud's published guide.

Source: Nextcloud: How to install Nextcloud All-in-One on Linux with Docker.