SecureNAS Hub

NAS Guides · Published 2026-11-16

How to Install Nextcloud AIO on Ubuntu and Reach It Remotely

Illustrative image: Synology concept scene
Illustrative image: Synology concept scene

Direct answer up front, then the trade-offs that matter. This page covers install nextcloud aio on ubuntu and answers: how to install nextcloud aio on ubuntu 24.04.

By Leo · Hardware Reviewer

Beat: Drive bays, RAID and expandability · How we review

Quick Answer

To install Nextcloud AIO on Ubuntu, install standard Docker Engine (not the snap build), start the AIO mastercontainer, open its interface on port 8080 using the server's IP address, then point a real domain at the machine and open ports 80 and 443. Remote access is the hard part. AIO requires working HTTPS and a domain even for local use, and it cannot run offline. It is worth it if you can own updates and a domain. Skip it if you need an air-gapped box.

Key Takeaways

The pain: your cloud works at home and nowhere else

The install itself takes minutes. The failure comes later, usually on a laptop tethered to a phone, when the private cloud you built refuses to load. You copy the LAN address into a browser, it works in the kitchen, and it fails at the airport. That gap is not a broken container. It is the difference between a service bound to a local IP address and a service with a public name, a valid certificate and a path through your router.

The confusion is worse because the AIO wizard looks like a local setup tool. It runs on port 8080 with a self-signed certificate, so the first screen appears on your own network and feels finished. Then the domain validation step arrives. According to the official README, AIO will not accept a bare IP address as the Nextcloud domain, will not accept a self-signed certificate for the Nextcloud interface, will not run in a subdirectory, and will not serve the interface on a port other than 443 (Nextcloud AIO (GitHub), accessed 2026-11-14). Every one of those constraints is a decision about remote reachability, not about storage.

What this article covers is narrow. We did not benchmark uploads, measure throughput, or run a stress test on any machine; our sources are the upstream documentation, the Docker installation guide, Tailscale's own documentation, and our own price and specification ledgers. Every number below is quoted from one of those sources with a check date. Where something is not documented, we say we could not verify it. The question that prompted this piece arrived through a Make Tech Easier tutorial headline listed in Google News RSS — private cloud (accessed 2026-11-14); the answer here is written from the upstream documentation, not copied from that tutorial.

What Nextcloud AIO is, in plain terms

Nextcloud AIO is a Docker-based distribution that packages the Nextcloud server, database, web server and optional add-on containers behind a single management container. The project calls that container the mastercontainer, and it orchestrates the rest of the stack by talking to the Docker daemon through the Docker socket (Nextcloud AIO (GitHub), accessed 2026-11-14). In the default Linux install the socket is mounted read-only at /var/run/docker.sock, and there is a separate manual-install path for people who refuse to expose the socket (Nextcloud AIO (GitHub), accessed 2026-11-14).

Two names in the official command are not cosmetic. The container name nextcloud-aio-mastercontainer must stay unchanged because mastercontainer updates rely on it, and the named volume nextcloud_aio_mastercontainer must stay unchanged because the built-in backup depends on it (Nextcloud AIO (GitHub), accessed 2026-11-14). Change either one during a tidy-up and you have broken either upgrades or restores. We could not verify a supported migration path for a renamed mastercontainer volume, so treat both names as fixed.

The README also sets a ceiling on scale: up to 100 users are free, with larger deployments routed to Nextcloud Enterprise (Nextcloud AIO (GitHub), accessed 2026-11-14). A household will never approach that. A small studio might. It is worth knowing before you build the machine around a free-tier assumption.

Prepare Ubuntu before you touch AIO

Docker's Ubuntu installation page lists four supported 64-bit releases: Ubuntu Stonking 26.10, Ubuntu Resolute 26.04 LTS, Ubuntu Noble 24.04 LTS and Ubuntu Jammy 22.04 LTS (Docker Documentation (Official), accessed 2026-11-14). It also lists x86_64, armhf, arm64, s390x and ppc64le as compatible architectures, and states that installation on Ubuntu derivative distributions such as Linux Mint is not officially supported (Docker Documentation (Official), accessed 2026-11-14). If your machine is a small ARM board, check uname -m; the AIO README lists x86_64 and aarch64 as supported architectures (Nextcloud AIO (GitHub), accessed 2026-11-14).

Before installing Docker Engine, remove conflicting packages. The official page names docker.io, docker-compose, docker-compose-v2, docker-doc, docker-buildx and podman-docker, and warns that previously installed containerd or runc can conflict with the bundled versions (Docker Documentation (Official), accessed 2026-11-14). The repository method then installs docker-ce, docker-ce-cli, containerd.io, docker-buildx-plugin and docker-compose-plugin, and the page suggests sudo docker run hello-world as the verification step (Docker Documentation (Official), accessed 2026-11-14).

Now the Ubuntu-specific trap. AIO does not support snap-based Docker installations, and the README says this is generally only an Ubuntu problem (Nextcloud AIO (GitHub), accessed 2026-11-14). Its check is sudo docker info | grep "Docker Root Dir" | grep "/var/snap/docker/"; if that returns /var/snap/docker/, the README tells you to migrate to standard Docker and, once no containers are running, to run sudo snap remove docker (Nextcloud AIO (GitHub), accessed 2026-11-14). The Docker installation page we read does not mention snap Docker at all, so do not treat that restriction as coming from Docker. It comes from AIO.

Storage and firewall details matter before the first boot. The AIO README recommends SSD storage, discourages SD cards because database writes punish them, says NTFS is not supported for a separate disk and recommends ext4 (Nextcloud AIO (GitHub), accessed 2026-11-14). On distributions using firewalld it documents Docker network problems and gives a fix that switches the backend from nftables to iptables and restarts firewalld and Docker (Nextcloud AIO (GitHub), accessed 2026-11-14). With SELinux enabled it suggests adding --security-opt label=disable to the mastercontainer command (Nextcloud AIO (GitHub), accessed 2026-11-14). We could not verify that any of those three fixes is needed on a default Ubuntu 24.04 install; check your own host before applying them.

The mastercontainer command, line by line

The official Linux command, quoted from the README, is sudo docker run --init --sig-proxy=false --name nextcloud-aio-mastercontainer --restart always --publish 80:80 --publish 8080:8080 --publish 8443:8443 --volume nextcloud_aio_mastercontainer:/mnt/docker-aio-config --volume /var/run/docker.sock:/var/run/docker.sock:ro ghcr.io/nextcloud-releases/all-in-one:latest (Nextcloud AIO (GitHub), accessed 2026-11-14). Each published port has a job, and reading them in order explains most failed installs.

FlagWhat the README says it does
--publish 80:80Redirects to Nextcloud and handles the ACME http-challenge for the mastercontainer certificate; not required behind a reverse proxy
--publish 8080:8080Serves the mastercontainer interface with a self-signed certificate; map a different host port such as 8081:8080 if 8080 is taken
--publish 8443:8443Serves the interface with a valid certificate, only when 80 and 8443 are reachable and a domain points at the server; not required behind a reverse proxy
--volume nextcloud_aio_mastercontainer:/mnt/docker-aio-configHolds mastercontainer configuration in a named volume that built-in backups depend on
--volume /var/run/docker.sock:/var/run/docker.sock:roGives the mastercontainer read-only Docker socket access so it can manage other containers

Source for every row: Nextcloud AIO (GitHub), accessed 2026-11-14. The README also notes that --env NEXTCLOUD_DATADIR="/mnt/ncdata" can move the data directory on first startup, and that the socket path differs on Windows, macOS and rootless Docker (Nextcloud AIO (GitHub), accessed 2026-11-14). If you change the socket path, the same documentation says to set WATCHTOWER_DOCKER_SOCKET_PATH to match.

After the first start, open the interface at https://<server-ip>:8080 and accept the self-signed certificate. Use an IP address, not a domain. The README warns that reaching port 8080 through a domain may work briefly but is likely to break later because of HSTS (Nextcloud AIO (GitHub), accessed 2026-11-14). If ports 80 and 8443 are forwarded and a domain points at the machine, https://your-domain:8443 gives you a valid certificate instead (Nextcloud AIO (GitHub), accessed 2026-11-14).

Ports, domains and TLS: where remote access breaks

Once the stack runs, the Apache container uses 443/TCP, and 443/UDP is needed only if you enable HTTP/3 (Nextcloud AIO (GitHub), accessed 2026-11-14). If you enable Nextcloud Talk, the TURN server needs 3478/TCP and 3478/UDP opened at the firewall or router (Nextcloud AIO (GitHub), accessed 2026-11-14). The list is short, but each number is a decision about how much of your network faces the internet.

PortPurposeRequired for
80/TCPACME http-challenge and redirect to NextcloudCertificate issuance; not needed behind a reverse proxy
443/TCPApache container serving NextcloudNormal use
443/UDPHTTP/3 on the Apache containerOptional
3478/TCP and 3478/UDPTURN server inside the Talk containerNextcloud Talk only
8080/TCPMastercontainer interface, self-signed, IP-onlyFirst setup
8443/TCPMastercontainer interface with a valid certificateSetup through a domain

Every port row above is documented in the AIO README (Nextcloud AIO (GitHub), accessed 2026-11-14).

The domain rules are strict. A dedicated domain or subdomain is required, the interface will redirect to port 443, and a plain IP address will not be accepted as the Nextcloud domain (Nextcloud AIO (GitHub), accessed 2026-11-14). AIO ships automatic TLS using Let's Encrypt, and the README documents a free deSEC dynamic-DNS domain under dedyn.io that can be registered from the AIO interface with no external domain purchase (Nextcloud AIO (GitHub), accessed 2026-11-14). That path also enables the Caddy community container as a reverse proxy and a dnsmasq container so LAN devices can resolve the name to a local address, while the mastercontainer keeps the DNS record current when the public IP changes (Nextcloud AIO (GitHub), accessed 2026-11-14).

Here is the constraint that surprises people: AIO cannot run offline or in an airgapped system, because of update checks, app-store installs and on-demand image downloads (Nextcloud AIO (GitHub), accessed 2026-11-14). Even a purely local instance still needs HTTPS working properly (Nextcloud AIO (GitHub), accessed 2026-11-14). So a private cloud that must function during an internet outage is out of scope for this distribution. That is not a bug we found. It is a documented design decision.

Getting in from outside without poking holes in your router

There are two broad routes, and they are not equivalent. One forwards ports 80 and 443 to the host and lets AIO obtain its own certificate. The other puts a reverse proxy or a private network in front of the stack. The AIO README explicitly supports reverse proxies and points to a separate reverse proxy document; it also says a proxy must be configured to use port 443 on the server that runs it (Nextcloud AIO (GitHub), accessed 2026-11-14). Compared with a plain port forward, a proxy adds a component you must maintain and gives you one place to control access.

Tailscale is the option the AIO documentation itself raises when discussing Cloudflare alternatives. Tailscale's own documentation describes encrypted point-to-point connections using the WireGuard protocol, a peer-to-peer mesh called a tailnet, and connections across firewalls and NAT without requiring port forwarding or complex firewall rules (Tailscale Docs, accessed 2026-11-14). That last sentence is the whole appeal for a home private cloud. We could not verify an end-to-end, officially supported AIO-plus-Tailscale deployment procedure in the AIO README; it points to a community discussion rather than a setup guide. Treat the pairing as a documented direction, not a recipe we validated.

Cloudflare Tunnel looks easier and has documented costs. From AIO's perspective the tunnel behaves like a reverse proxy, and Cloudflare Proxy and Tunnel both terminate TLS on Cloudflare's infrastructure, which means traffic is decrypted there (Nextcloud AIO (GitHub), accessed 2026-11-14). The README says local access through the configured domain is not possible in that arrangement, because TLS termination is offloaded; it also lists a 100 MB upload ceiling on the free plan with a 413 error for larger files, a non-configurable 100s request timeout, domain validation failures, Rocket Loader breaking the login prompt, Collabora needing Cloudflare IP ranges added to a WOPI allowlist, and the Talk TURN server failing because it needs its own port (Nextcloud AIO (GitHub), accessed 2026-11-14). The maintainers recommend the built-in deSEC domain registration or Tailscale instead (Nextcloud AIO (GitHub), accessed 2026-11-14). If your use case is uploading camera originals or large project files, that 100 MB ceiling is the catch.

Backups: what AIO actually protects

AIO ships an optional backup based on BorgBackup. Daily backups can be enabled from the interface, the interface can restore an instance from an archive plus its password, the backup path or a remote Borg repository can be changed, and external Docker volumes or host paths can be added (Nextcloud AIO (GitHub), accessed 2026-11-14). The same documentation says backup creation, restore, integrity check and integrity repair are all manageable from the interface (Nextcloud AIO (GitHub), accessed 2026-11-14).

The limit is specific. Directories exposed through NEXTCLOUD_MOUNT are not covered by the built-in backup, and that variable accepts only a single path (Nextcloud AIO (GitHub), accessed 2026-11-14). The README suggests collecting host directories under one common parent such as /mnt/ via bind mounts, then adding further volumes or host paths to the backup after the initial backup has run (Nextcloud AIO (GitHub), accessed 2026-11-14). Combine that with the fixed volume name noted earlier and you have a clear rule: the wizard protects its own stack, and anything you bolt on needs an explicit second step.

A backup that lives on the same disk as the data is not an offsite copy. We could not verify current pricing for any remote Borg repository service, so we will not quote one. If the archive matters, keep a copy somewhere the machine cannot delete.

Real-World Costs

Our price ledger is a set of vendor-page readings with check dates, not a live quote service. It holds 78 observations as of 2026-11-10, covering 32 NAS enclosures, 3 drive models and 21 subscription tiers; the sample does not represent the whole market, and models with missing fields are excluded from the relevant denominators (price ledger, accessed 2026-11-14). All figures below are quoted with their check dates. Do not read them as today's prices.

ItemLedger readingCheckedChannel
Synology DS224+$299.992026-10-30Synology
UGREEN NASync DXP2800$369.992026-10-30UGREEN
UGREEN NASync DXP4800 Plus$619.99, sale2026-11-03UGREEN official store, US
Dropbox Basic, 2 GB$0/month2026-11-08Dropbox (Official)
Dropbox Plus, 2 TB$9.99/month2026-11-08Dropbox (Official)
Plex Remote Watch Pass$2.99/month2026-10-19Plex Support
Plex Pass, monthly$6.99/month2026-10-19Plex Support

Source for every row: SecureNAS Hub price ledger, accessed 2026-11-14; underlying vendor pages are listed in Sources. The same ledger also holds a $389.99 reading for DXP2800 checked 2026-10-16 and a $656.99 reading for DXP4800 Plus checked 2026-10-16, both from Amazon; channel differences are why the numbers are not merged into one "market price" (price ledger, accessed 2026-11-14).

A five-year subscription at $9.99/month is $599.40 by simple arithmetic, with no assumption about price increases or currency changes (price ledger, accessed 2026-11-14; our calculation). That number buys offsite redundancy and no server maintenance. A DIY Ubuntu box running AIO costs you the hardware, the domain and your own update labour. Neither column is free money. The catch is that the subscription figure is a calculation from a checked price, while your own time has no quoted rate.

Budget: reuse the machine you own. Install standard Docker Engine on a supported Ubuntu release, run the mastercontainer, register a free deSEC domain from the interface and use an SSD rather than an SD card (Docker Documentation (Official), accessed 2026-11-14; Nextcloud AIO (GitHub), accessed 2026-11-14). This is worth it if you already have a small box with a disk and you are comfortable reading container logs. It is overkill if all you need is photo sync from one phone.

Family: buy the enclosure instead of building one. A finished NAS gives you a supported Docker host, a drive-bay layout and a vendor update path without assembling a PC. If you go this way, the AIO README documents a Synology DSM variant that changes the socket path to /volume1/docker/docker.sock, sets WATCHTOWER_DOCKER_SOCKET_PATH, requires SSH or a root scheduled task, and lists firewall exceptions for ports 80, 443 and 3478 TCP+UDP (Nextcloud AIO (GitHub), accessed 2026-11-14). Here is the specification ledger's own comparison table for Synology models, generated directly from vendor pages. Prices in the first row are historical readings checked 2026-10-02 and marked stale in our ledger, not current quotes.

FieldSynology DS225+ (2025)Synology DiskStation DS925+Synology DiskStation DS923+Synology DiskStation DS1525+
Price (tracked)Amazon $364.99 (2026-10-02, stale)Amazon $749.76 (2026-10-02, stale)US street (diskless) $599 (2026-10-02, stale)Amazon $1309.99 (2026-10-02, stale)
Drive bays (SATA)2 bays4 bays4 bays5 bays
M.2 NVMe slots0 slots2 slots2 slots2 slots
Max bays with expansion7 bays9 bays9 bays15 bays
Hot-swap baysYesYesYesYes
CPUIntel Celeron J4125AMD Ryzen V1500BAMD Ryzen R1600AMD Ryzen V1500B
CPU cores4 cores4 cores2 cores4 cores
Installed RAM2 GB4 GB4 GB8 GB
Max RAM6 GB32 GB32 GB32 GB
RAM slots1 slot2 slots2 slots2 slots
ECC RAMNoYesYesYes
1GbE ports1 port—2 ports—
2.5GbE ports1 port2 ports—2 ports
PCIe slots——1 slot1 slot
USB ports2 ports2 ports2 ports2 ports
Form factorDesktop towerDesktop towerDesktop towerDesktop tower
Weight1.3 kg2.26 kg2.24 kg2.67 kg
Internal filesystem—Btrfs, ext4Btrfs, ext4Btrfs, ext4
Warranty3 years3 years3 years3 years

Sources: Synology DS1525+ product page, Synology DS923+ product specification, and Synology official comparison pages (spec ledger, accessed 2026-11-14). A dash means the ledger has no verified value for that field. We do not fill gaps with numbers from other models. Because the anchor here is a brand family rather than one SKU, the review layer does not attribute any single specification claim to one model; read each column as that exact model's specification (spec ledger, accessed 2026-11-14).

Creator: keep the two jobs separate. Run AIO on Ubuntu for file sync and sharing, and keep large active project media on local fast storage with its own backup. The README notes that non-chunked uploads are limited to 1 GB by default, that PHP and web server timeouts are set to 3600s, and that public links support uploads up to 10 GB with adjustment (Nextcloud AIO (GitHub), accessed 2026-11-14). The same README says cloud proxying adds a 100 MB ceiling on the free plan (Nextcloud AIO (GitHub), accessed 2026-11-14). Skip this setup if you need a single tool that edits video as well as storing it; AIO is a file platform, not an editor.

Common Mistakes

  1. Installing Docker from the Ubuntu snap. AIO explicitly does not support snap-based Docker, and gives a check command plus a removal command (Nextcloud AIO (GitHub), accessed 2026-11-14).
  2. Opening the port 8080 interface through a domain name. Use an IP address, or HSTS can block access later (Nextcloud AIO (GitHub), accessed 2026-11-14).
  3. Expecting a bare IP address or a self-signed certificate to serve the Nextcloud interface. The README rules both out, along with subdirectories and non-443 ports (Nextcloud AIO (GitHub), accessed 2026-11-14).
  4. Renaming the container or its config volume. Updates rely on the container name; built-in backups rely on the volume name (Nextcloud AIO (GitHub), accessed 2026-11-14).
  5. Assuming NEXTCLOUD_MOUNT directories are backed up. They are not, and the variable accepts a single path (Nextcloud AIO (GitHub), accessed 2026-11-14).
  6. Building on an SD card or an NTFS disk. The README discourages SD cards for database writes, says NTFS is unsupported and recommends ext4 (Nextcloud AIO (GitHub), accessed 2026-11-14).
  7. Forgetting 3478/TCP and 3478/UDP after enabling Talk, or 443/UDP after enabling HTTP/3 (Nextcloud AIO (GitHub), accessed 2026-11-14).
  8. Routing everything through a Cloudflare Tunnel and then wondering why large uploads fail. The free plan's 100 MB ceiling and 100s timeout are documented, along with the Talk TURN limitation (Nextcloud AIO (GitHub), accessed 2026-11-14).
  9. Applying firewalld, SELinux or Docker API workarounds you do not need. The README documents a DOCKER_API_VERSION=1.44 example but says only the default API version is supported and tested by maintainers (Nextcloud AIO (GitHub), accessed 2026-11-14). We could not verify that any host in your house needs these changes.

Frequently Asked Questions

How do I install Nextcloud AIO on Ubuntu 24.04?

Install standard Docker Engine from Docker's apt repository on Ubuntu Noble 24.04 LTS, one of the four 64-bit releases the official page lists as supported (Docker Documentation (Official), accessed 2026-11-14). Confirm it is not a snap install, remove conflicting packages first, run sudo docker run hello-world, then start the AIO mastercontainer with the official command (Nextcloud AIO (GitHub), accessed 2026-11-14). Open the interface at https://<server-ip>:8080, accept the self-signed certificate, and follow the domain step. We could not verify a supported release beyond the four listed.

Can I run Nextcloud AIO without a domain name?

No. The README says a bare IP address will not be accepted as the Nextcloud domain, that self-signed certificates are not supported for the Nextcloud interface, and that a dedicated domain or subdomain is required (Nextcloud AIO (GitHub), accessed 2026-11-14). It does document a free deSEC dedyn.io dynamic-DNS domain that you can register from the AIO interface, so you do not have to buy one (Nextcloud AIO (GitHub), accessed 2026-11-14). Valid HTTPS remains mandatory even for a local-only instance.

Which ports do I need to open for remote access?

For normal use, 443/TCP serves the Apache container and 80/TCP handles the ACME http-challenge and redirect; neither 80 nor 8443 is required behind a reverse proxy (Nextcloud AIO (GitHub), accessed 2026-11-14). Add 443/UDP only for HTTP/3, and 3478/TCP plus 3478/UDP only if you enable Nextcloud Talk (Nextcloud AIO (GitHub), accessed 2026-11-14). Port 8080 is for first setup by IP address, not for public exposure. The interface always redirects to 443.

Is a Cloudflare Tunnel a safe shortcut for Nextcloud AIO?

It works as a reverse proxy from AIO's perspective, but the README lists real costs: Cloudflare terminates TLS and decrypts traffic, local access by the configured domain is not possible, the free plan caps uploads at 100 MB with a 413 error above that, and requests time out at a non-configurable 100s (Nextcloud AIO (GitHub), accessed 2026-11-14). Talk's TURN server also fails behind the tunnel (Nextcloud AIO (GitHub), accessed 2026-11-14). The maintainers recommend the built-in deSEC domain or Tailscale instead.

Does the built-in backup cover my external drive?

Not automatically. Directories exposed through NEXTCLOUD_MOUNT are not covered by the built-in BorgBackup solution, and that variable takes a single path (Nextcloud AIO (GitHub), accessed 2026-11-14). The README suggests mounting host directories under one common parent, then adding extra Docker volumes or host paths to the backup after the initial backup has completed (Nextcloud AIO (GitHub), accessed 2026-11-14). A restore needs the archive and its password. Keep an offsite copy as well.

How much does a home NAS cost compared with a cloud plan?

Our ledger lists Synology DS224+ at $299.99 checked 2026-10-30, UGREEN NASync DXP2800 at $369.99 checked 2026-10-30, and Dropbox Plus 2 TB at $9.99/month checked 2026-11-08 (price ledger, accessed 2026-11-14). Five years at that monthly figure is $599.40 by simple arithmetic, excluding any price change (price ledger, accessed 2026-11-14; our calculation). The enclosure price excludes drives, and the subscription includes offsite redundancy. Our ledger covers 32 enclosures and does not represent the whole market.

Can Nextcloud AIO run fully offline?

No. The README states that AIO cannot run offline or in an airgapped system because of update checks, app-store installs and on-demand image downloads, and that valid HTTPS is still required for a local instance (Nextcloud AIO (GitHub), accessed 2026-11-14). There is a documented local-instance guide, but it does not remove the HTTPS requirement. If you need storage that works with the WAN unplugged and a certificate authority of your own, choose a different stack.

Sources

Run your own 5-year cost comparison with the on-site calculator

Every figure above is attributed in the Sources list — put your own drive count and subscription tiers into the calculator to see where you land.

Open the cost calculator →

Related reading

Was this article helpful?

One tap, no account and no comment box. It tells us which guides are actually worth updating.

Need help with a specific setup?

Storage choices depend on your drives, your budget and how many people share the box. Tell us what you are building and we will point you at a configuration that fits — no obligation, no sales script.

Affiliate Disclosure: SecureNAS Hub may earn a commission from qualifying purchases made through links on this page, at no extra cost to you. Facts and figures are attributed in the Sources list; nothing on this page is a fabricated test result. See our full disclosure. Product images are either supplied by the manufacturer or clearly labelled as illustrative renders; each one is captioned accordingly. Last reviewed 2026-11-16.