This tutorial is for all, who are looking for a tutorial to get nextcloud running on podman.
As Iâm always disappointed, getting tutorials out of date. This tutorial works at least up to 18.02.2026 with Nextcloud docker 32.0.5 and 32.0.6.
In this installation I have a Ubuntu server, but guess this will work with any other linux distribution the same.
Podman Desktop can be installed directly with flatpak from Flathub and then you only have to install podman as guided through Podman Desktop.
For MariaDB I used Docker Hub Container Image Library | App Containerization It is not the recommended one and throws a warning, but the nextcloud works like a charm.
For Nextcloud I used Docker Hub Container Image Library | App Containerization
precondition:
To get and keep all necessary configs and settings, you need some folders for the volumes. As Podman runs rootless you need for all following folders and files ownership and access for your logged in user.
nextcloud_main_folder:
âââ config.php
âââ nextcloud.sh
âââ nextclouddata-folder/
â âââ
Like in Docker you first have to pull both images. In Podman Desktop this is on âImages > Button:Pullâ
In your ânextcloud.shâ you can copy an all in one installtion, but keep in mind, that network, pod and database will only created once. So for updates and testing you only need the âpodman runâ command.
Nextcloud GmbH recommends a MariaDB >= 10.6 und 11.8 <=, so you may prefer to set a defined version.
#!/bin/bash
podman network create -d bridge nextcloudnet
podman pod create --name nextcloudpod -p 8086:80 --network nextcloudnet
podman run -d
âpod nextcloudpod
âname mariadb-nextcloud
-e MYSQL_ROOT_PASSWORD=nextcloud
-e MYSQL_USER=nextcloud
-e MYSQL_PASSWORD=nextcloud
-e MYSQL_DATABASE=nextcloud
ârestart=always
docker.io/library/mariadb:stable \\
podman run -d
âpod nextcloudpod
âname nextcloud
-v /mnt/cloudron/common/nextcloud/nextclouddata:/var/www/html
ârestart=always
docker.io/library/nextcloud:latest
The sh must be executable and can be started with ./nextcloud.sh from the current folder or with full path. For security reasons feel free to edit the login credentials for the mariadb nextcloud database.
- The naming for the network, port and the pod can be edited freely. But need to edited in any other tutorial step later.
After running the skript or all podman command in a terminal, the pod should be created and database and nextcloud should be available on the http://localhost:8086
Podman itself also creates a âcrypticâ-infra container to handle the pod itself. You donât need to care or touch it.
Here you start with the initial config for nextcloud, entering the credentials for mariadb. (I didânt managed to autofill this in the run command.)
At this step, it runs. Further taska are enabling and hardening additional security settings, addings apps.