Rootless Podman Quadlet #3487
Replies: 32 comments 90 replies
-
Known issuesI've encountered some problems, however it is unknown whether these are actual bugs related to Podman or just usage errors.
For, now, you can manually update the mastercontainer by running systemctl --user stop nextcloud-aio-mastercontainer.service
podman pull docker.io/nextcloud/all-in-one:latest
systemctl --user start nextcloud-aio-mastercontainer.service |
Beta Was this translation helpful? Give feedback.
-
Will this solution also work with a Podman compose file? What is de advantage of using a systemd unit file? |
Beta Was this translation helpful? Give feedback.
-
Soft reset instructions systemctl --user stop nextcloud-aio-mastercontainer
containers=$(podman ps -a -f 'name=^nextcloud-aio' --format='{{.Names}}')
podman stop $containers
podman rm $containers
systemctl --user start nextcloud-aio-mastercontainer |
Beta Was this translation helpful? Give feedback.
-
Hey, I'm using podman (rootless) in favor of docker on FCOS. My first attempt to get this working like described above ended in an error at domain check. Maybe this is a networking issue as caddy is proxying to Next step was to skip domaincheck but that ended in an Bonus: |
Beta Was this translation helpful? Give feedback.
-
Hey there @loeffelpan,
are you running behind cloudflare? If so, this might be the reason for your domaincheck issues. When disabling the domaincheck, do the application errors look similar to the ones described in this comment? #3487 (reply in thread)
If so, this will be fixed in a newer version of podman. 4.7.0 doesn't contain this fix and I haven't tested 4.7.2 until yet, but I don't think it includes my fix already.
Until the fixed podman version is released, you can also patch the source code of your nextcloud AIO as described by @jennydaman here: #3487 (reply in thread)
|
Beta Was this translation helpful? Give feedback.
-
podman -v podman logs nextcloud-aio-mastercontainer |
Beta Was this translation helpful? Give feedback.
-
I'm confused that this question has not beeing asked. Maybe I missed something. |
Beta Was this translation helpful? Give feedback.
-
Anyone using collabora in this setup?
Without collabora nextcloud is working fine. |
Beta Was this translation helpful? Give feedback.
-
I followed the above steps on Fedora Silverblue 39 and was unable to start the
|
Beta Was this translation helpful? Give feedback.
-
Some notes from my last install. Hope it helps. cgroupsRunning containers as rootless requires cgroups version 2. Version 1 or hybrid mode v1/v2 doesnt work. Check the status SELinuxCheck the status with command NetavarkTodays versions of Podman comes with Netavark module, but existing installations are configured for CNI. If you have problems with intercontainer DNS resolution, switch it. Backup restoreBackup restore doesnt work during initial installation. Error is "Permission denied". Not sure if common bug or rootless install only. As a workaround, you can symlink backup directory to /tmp and use it for import |
Beta Was this translation helpful? Give feedback.
-
Thank you for these instructions. I was able to get this working through cloudflare tunnel by adding a "Bypass - include everyone" rule for the zero trust app. (Allow - include everyone did not work because it continued to ask for cloudflare OTP, which broke the mobile apps with "Malformed server configuration"). I will need to make modifications to config.php, namely |
Beta Was this translation helpful? Give feedback.
-
Fedora 39 here.
Any ideas? |
Beta Was this translation helpful? Give feedback.
-
On any mastercontainer update I got this error (in the logs of watchtower container): Same on starting newly created mastercontainer. |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
Hey!
It seems that for some reason podman needs catatonit in order to create other containers. I didn't know that it could have saved a couple of days of troubleshooting. I'm just documenting it here in case that someone has the same problem! |
Beta Was this translation helpful? Give feedback.
-
Trying this on Arch Linux arm on RPi 5 (it may or may not be the case) is and I get the following: When connected to localhost:11001: Slim Application Error. Then after page refresh: Domaincheck container is not running. In the journal:
Also on
aardvark-dns is installed. |
Beta Was this translation helpful? Give feedback.
-
How are you guys running caddy with this setup ? Are you running it with podman-rootless or with podman-root? |
Beta Was this translation helpful? Give feedback.
-
I'm using nginx as the reverse proxy and ssl offloader. |
Beta Was this translation helpful? Give feedback.
-
For some reason, |
Beta Was this translation helpful? Give feedback.
-
Do I have to use a reverse proxy? Or can I just publish the container to 8443 directly by changing to
...
as the Nextcloud AIO documentation defaults to doing? |
Beta Was this translation helpful? Give feedback.
-
After a server reboot, I could not get the AIO container up with:
The permissions on No idea why a reboot changed that... wasted 4 hours on this... |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
I've AIO working, but every time that I reboot my server, the nextcloud containers do not start, even if AIO is up&&running. Is there a way to auto run the "child" containers without the need to access AIO page and press the button? |
Beta Was this translation helpful? Give feedback.
-
I got stuck on the first step. I can't even install it successfully.
than i got error:
|
Beta Was this translation helpful? Give feedback.
-
Hello! I'm attempting to run Nextcloud in this fashion but I have some concerns. For context, my environment is is using Podman Quadlets on a Fedora VM. Users and permissions are managed using FreeIPA. All persistent volumes are stored on NFS shares that are also Kerberized. I am running this as a specific user using the above configurations (although I am heavily considering the manual installation in a Pod to allow this to run rootless under root). The reason I bring this up is that I can't actually start the Nextcloud container itself as it can't chown the data directory to Note:
|
Beta Was this translation helpful? Give feedback.
-
I created a tool to manage podman and quadlets from repositories, and with it this installation can be run like so:
The tool is using git repositories with folders containing all the quadlet files. The default the tool works with is https://github.com/rgolangh/podman-quadlets , but you can use your own of course. If you're interested please check-out https://github.com/rgolangh/pq - PRs or issues/discussions and feedback are welcomed. |
Beta Was this translation helpful? Give feedback.
-
When going into https://127.0.0.1:8443 I get an |
Beta Was this translation helpful? Give feedback.
-
After updating to version 30.0.2, the AppAPI feature is flooding my logs with errors related to accessing the docker.sock.
Suggestions? Disable AppAPI? Point it in the right direction somehow? |
Beta Was this translation helpful? Give feedback.
-
Anyone managed to make onlyoffice work? I cannot access the host from within the container. |
Beta Was this translation helpful? Give feedback.
-
This guide sets up Nextcloud-AIO using Podman in rootless mode and Quadlet behind a reverse proxy.
0. Install Podman
Podman version 4.8.0 or above is required. Older versions of Podman require workarounds, see edit history and discussion below.
1. Set up a reverse proxy
Consult the upstream documentation on how to do this: https://github.com/nextcloud/all-in-one/blob/main/reverse-proxy.md
An example
Caddyfile
might look like this:2. Create Systemd Unit File
Create the file
~/.config/containers/systemd/nextcloud-aio-mastercontainer.container
with the following content:Important notes:
/run/user/1001/podman/podman.sock
to the path of your Podman socket (podman info --format '{{ .Host.RemoteSocket.Path }}'
)nextcloud-aio
. The optionNetwork=bridge
enables this behavior, for details see podman network connect not implemented for slirp4netns containers/podman#19577 (comment)Also, create the file
~/.config/containers/systemd/nextcloud-aio-mastercontainer.volume
:3. Start the Services
4. (Optional) Configure Containers to Restart After Reboot
Podman is daemonless so unlike Docker, containers do not restart automatically after reboot.
To enable restart of Podman containers after reboot, see containers/podman#20418 (comment)
5. Business As Usual
Go to https://cloud.example.com:8443 to access the Nextcloud AIO interface and start the Nextcloud server.
Notes
Backups and mastercontainer self-updating might not work, these details have yet to been sorted out.
Beta Was this translation helpful? Give feedback.
All reactions