# Install container recipe on sub-server

**URL:** <https://forum.virtualmin.com/t/install-container-recipe-on-sub-server/138056>\
**Category:** General Discussion\
**Created:** [September 23, 2026, 4:05am UTC](https://forum.virtualmin.com/t/install-container-recipe-on-sub-server/138056 "2026-09-23T04:05:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![robdawson](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/eb9ed0/32.png) [@robdawson](https://forum.virtualmin.com/u/robdawson)\
**Post date:** [September 23, 2026, 4:05am UTC](https://forum.virtualmin.com/t/install-container-recipe-on-sub-server/138056/1 "2026-09-23T04:05:18Z")

</div>

I’m migrating my docker containers from my old VPS to my fresh Ubuntu physical server, and following suggested best practice I have created a few sub-servers off my main domain, to replace the old sub-domain set up I had. I had 3 docker containers on the old server, but I want to use the new Container Manager in Virtualmin to install and manage them on my new server. When I try to run a new recipe, I get this error:

level=warning msg=“RunRoot is pointing to a path (/run/user/1004/containers) which is not writable. Most likely podman will fail.”

The user 1004 is my mail domain user, and has no domain or otherwise connection to the parent Virtual Server, or the sub-server, so it makes sense that it fails. AI is suggesting that I need to add a user as Owner to the sub-server so that the recipe won’t fallback to the first user it finds, but I would rather ask in here because that solution doesn’t make full sense to me. My thinking is that the recipe would have handled that if it was needed? I would prefer to run rootless to keep the containers separated if that matters.

Can anyone shed any light on what I’m doing wrong, or what I need to do to install the recipe please?

---

<div class="post-metadata">

**Author:** ![robdawson](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/eb9ed0/32.png) [@robdawson](https://forum.virtualmin.com/u/robdawson)\
**Post date:** [September 28, 2026, 9:42pm UTC](https://forum.virtualmin.com/t/install-container-recipe-on-sub-server/138056/2 "2026-09-28T21:42:22Z")

</div>

No responses - I guess I have to revert to my sub-domain setup. 😢

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [September 29, 2026, 6:00am UTC](https://forum.virtualmin.com/t/install-container-recipe-on-sub-server/138056/3 "2026-09-29T06:00:19Z")

</div>

I’m not sure I understand what Sub-servers have to do with the error? The problem is that it’s setup to run as a user unrelated to the domain that owns the sub-server, not that it’s a subserver. The same thing wouldn’t work under a top-level virtual server, either, because that user is also not the mail user.

---

<div class="post-metadata">

**Author:** ![robdawson](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/eb9ed0/32.png) [@robdawson](https://forum.virtualmin.com/u/robdawson)\
**Post date:** [September 29, 2026, 8:18am UTC](https://forum.virtualmin.com/t/install-container-recipe-on-sub-server/138056/4 "2026-09-29T08:18:09Z")

</div>

I hear what you’re saying Joe, but I’m not choosing the user - the recipe is. I tried it on the parent server and got the same response, so I guess sub-server isn’t the issue. It doesn’t change the issue I’m having, I get the error as soon as I click “Deploy”, before I have had a chance to enter any details or information. Here’s the full error:  
Checking deployment requirements ..  
.. done

Creating container trilium from [docker.io/triliumnext/trilium:v0.105.0](http://docker.io/triliumnext/trilium:v0.105.0) ..  
.. failed : failed to prepare persistent storage /home/myserver/containers/trilium/data for its container user: failed to initialize rootless Podman for myserveruser: failed to snapshot running pods for myserveruser: time=“2026-09-29T17:44:02+09:30” level=warning msg=“RunRoot is pointing to a path (/run/user/1004/containers) which is not writable. Most likely podman will fail.”  
Error: default OCI runtime “crun” not found: invalid argument

---

<div class="post-metadata">

**Author:** ![rudy.hinojosa](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/rudy.hinojosa/32/24756_2.png) [@rudy.hinojosa](https://forum.virtualmin.com/u/rudy.hinojosa)\
**Post date:** [September 29, 2026, 5:27pm UTC](https://forum.virtualmin.com/t/install-container-recipe-on-sub-server/138056/5 "2026-09-29T17:27:51Z")

</div>

curious:

```auto
id <virtual-server-owner>
loginctl user-status <virtual-server-owner>
sudo -u <virtual-server-owner> podman info
sudo -u <virtual-server-owner> sh -c 'echo $XDG_RUNTIME_DIR'

```

Also check that the intended rootless container user has subordinate UID/GID ranges:

```auto
grep <virtual-server-owner> /etc/subuid
grep <virtual-server-owner> /etc/subgid

```

---

<div class="post-metadata">

**Author:** ![Joe](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/joe/32/9_2.png) [@Joe](https://forum.virtualmin.com/u/Joe)\
**Post date:** [September 29, 2026, 6:43pm UTC](https://forum.virtualmin.com/t/install-container-recipe-on-sub-server/138056/6 "2026-09-29T18:43:06Z")

</div>

If everything is coming from a recipe, then that’s a bug. I got the impression from your initial post you were bringing over some existing containers/configuration.

Definitely don’t do what the AI is suggesting. The container should be owned by the domain owner user, and obviously should be working in paths owned by that user.

@Ilia any idea why it’s trying to use some unrelated user for the container RunRoot?

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [September 29, 2026, 9:17pm UTC](https://forum.virtualmin.com/t/install-container-recipe-on-sub-server/138056/7 "2026-09-29T21:17:50Z")

</div>

> [@robdawson](#):
>
> and following suggested best practice I have created a few sub-servers off my main domain, to replace the old sub-domain set up I had.

Could you link the “best practice” instructions you followed? Creating sub-servers is supported, so that alone shouldn’t cause this error.

With a standard installation using our `virtualmin-install.sh` script, you should be able to create a virtual server and sub-server, then install Trilium Notes using the recipe’s default settings, out of the box.

And no additional users or manual Podman configuration is needed!

I’ve just tested the same Trilium Notes recipe on an Ubuntu 24.04 sub-server, and it installed successfully as in my previous tests:

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/3X/d/d/ddb67275b0cba546d8ba9bb79e934b812190e9e3.png)  
 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/3X/f/8/f86a8f21c0c251d2f9d973e799bb525c1f2d0384.jpeg)  
 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/3X/2/9/29e54db8b21509ccd5a2e4a5371497facd60dc8f.png)

---

<div class="post-metadata">

**Author:** ![robdawson](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/eb9ed0/32.png) [@robdawson](https://forum.virtualmin.com/u/robdawson)\
**Post date:** [September 29, 2026, 11:00pm UTC](https://forum.virtualmin.com/t/install-container-recipe-on-sub-server/138056/8 "2026-09-29T23:00:26Z")

</div>

Thanks for the replies, for brevity I’ll address them all in one response. Firstly my error:

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/3X/7/a/7ad8cbfb5396982aa5aca340a5cc29272dee3574.png)

I built a brand new physical Ubuntu 26.04 server, and migrated Virtualmin and my domains from my old 24.04 VPS. In my old setup, I was running a Postfix mail server, Radicale Dav server, Syncthing file share, and 3 Docker apps serverd by Apache, installed using Docker Compose. I have (finally) got my mail server working (changing from spamassassin to rspamd provided many challenges and learnings 🙂 ), as well as Radicale and Syncthing. Now it’s time for the docker apps, and I want to use the Container Manager this time, rather than the pure docker installs. After they’re up and running, I will (attempt) to import the existing data, but that’s not my issue at present.

@rudy.hinojosa The first command you asked for might give some insight into where this is falling down.  
Running “id myuser” showed a user id of 1011, group id of 1004 and groups=1004.  
Running loginctl shows an active user with the id 1011 as expected. This user is also the apache web user, I don’t use www-data, and I’ve checked the apache envvars to confirm that.  
Running podman info returns the error I’m getting (path /run/user/1004/containers is not writable).  
Running ’ echo $XDG…’ returns a blank line.  
Running the 2 grep commands returned identical outputs myuser:165536:65536

It might be that the difference between my uid and gid could be an issue? The actual user with uid of 1004 is my mail user, part of a completely separate domain.

@Ilia The “best practice” was a response to my question to an AI agent re: the suitability of sub-domain (my existing setup) vs sub-server. I checked the references it provided, and it seemed sound advice. I’m not using AI for any of the installs unless I run into issues, and then only for answers that I can check and validate. It’s helpful, but certainly not trustworthy!  
I installed Virtualmin to my new server using the install script, and then restored my domains and configs etc from backups of the old server.

I hope this info helps.

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [September 29, 2026, 11:53pm UTC](https://forum.virtualmin.com/t/install-container-recipe-on-sub-server/138056/9 "2026-09-29T23:53:29Z")

</div>

Your UID and GID don’t need to match, so that difference is fine.

Podman using `/run/user/1004` when your UID is `1011` isn’t expected behavior at all!

Q1. Also tell us how you migrated from the old server to the new one. Did you restore the configuration through Virtualmin backups, or did you also copy files manually? If so, which files did you copy? Q2: What were the old and new OSs?

I’d say let’s run a few checks to get more details and figure out why your Podman can’t find `crun`.

Q3: Now replace `myuser` with your domain owner’s username and share the full output of the following command:

```bash
sudo -iu myuser sh -c '
id
podman --version
command -v crun
crun --version
XDG_RUNTIME_DIR="/run/user/$(id -u)" podman --log-level=debug info
'

```

---

<div class="post-metadata">

**Author:** ![robdawson](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/eb9ed0/32.png) [@robdawson](https://forum.virtualmin.com/u/robdawson)\
**Post date:** [September 30, 2026, 12:15am UTC](https://forum.virtualmin.com/t/install-container-recipe-on-sub-server/138056/10 "2026-09-30T00:15:25Z")

</div>

I was running Ubuntu 24.04 Virtualmin 8.2 Pro on my old server, and did a fresh install of Ubuntu 26.04 and Virtualmin 8.2 Pro on my new server (it’s now 8.3). I backed up the Virtualmin config and domains on my old server, and restored them to my new server. I still have access to my old server if any comparison checks or old file settings are needed.

I have copied some of the files manually, but most of those have been Postfix specific.

I tried to run the command you suggested, but got this output:  
sh: 1: idpodman: not found

 ![image](https://cdn.forum.virtualmin.com/uploads/default/original/3X/f/4/f4a806453414dee8259a6c4b64795ab598a42bc1.png)

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [September 30, 2026, 12:03pm UTC](https://forum.virtualmin.com/t/install-container-recipe-on-sub-server/138056/11 "2026-09-30T12:03:12Z")

</div>

> [@robdawson](#):
>
> I have copied some of the files manually, but most of those have been Postfix specific.

Understood!

> [@robdawson](#):
>
> I tried to run the command you suggested, but got this output:  
> sh: 1: idpodman: not found

Ah, dang, sorry. Run it as a one-liner, replacing `myuser` with your domain owner’s username:

```auto
sudo -iu myuser sh -c 'id; podman --version; command -v crun; crun --version; XDG_RUNTIME_DIR="/run/user/$(id -u)" podman --log-level=debug info'

```

---

<div class="post-metadata">

**Author:** ![rudy.hinojosa](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/rudy.hinojosa/32/24756_2.png) [@rudy.hinojosa](https://forum.virtualmin.com/u/rudy.hinojosa)\
**Post date:** [September 30, 2026, 4:02pm UTC](https://forum.virtualmin.com/t/install-container-recipe-on-sub-server/138056/12 "2026-09-30T16:02:36Z")

</div>

Oh nice, this looks like Obsidian. I like it!

---

<div class="post-metadata">

**Author:** ![robdawson](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/eb9ed0/32.png) [@robdawson](https://forum.virtualmin.com/u/robdawson)\
**Post date:** [September 30, 2026, 9:14pm UTC](https://forum.virtualmin.com/t/install-container-recipe-on-sub-server/138056/13 "2026-09-30T21:14:29Z")

</div>

> [@Ilia](#):
>
> `sudo -iu myuser sh -c 'id; podman --version; command -v crun; crun --version; XDG_RUNTIME_DIR="/run/user/$(id -u)" podman --log-level=debug info'`

Here’s the output from that command:

```auto
rob@myhost:~$ sudo -iu myuser sh -c 'id; podman --version; command -v crun; crun --version; XDG_RUNTIME_DIR="/run/user/$(id -u)" podman --log-level=debug info'
[sudo: authenticate] Password:
uid=1011(myuser) gid=1004(mygroup) groups=1004(mygroup)
podman version 5.7.0
/usr/bin/crun
crun version 1.21
commit: 10269840aa07fb7e6b7e1acff6198692d8ff5c88
spec: 1.0.0
+SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +WASM:wasmedge +YAJL
INFO[0000] podman filtering at log level debug
DEBU[0000] Called info.PersistentPreRunE(podman --log-level=debug info)
INFO[0000] Setting parallel job count to 37
DEBU[0000] Using conmon: "/usr/bin/conmon"
INFO[0000] Using sqlite as database backend
DEBU[0000] Overriding run root "/run/user/1011/containers" with "/run/user/1004/containers" from database
DEBU[0000] Overriding tmp dir "/run/user/1011/libpod/tmp" with "/run/user/1004/libpod/tmp" from database
DEBU[0000] systemd-logind: Unknown object '/'.
WARN[0000] RunRoot is pointing to a path (/run/user/1004/containers) which is not writable. Most likely podman will fail.
DEBU[0000] Using graph driver overlay
DEBU[0000] Using graph root /home/ ***myuser or group*** /.local/share/containers/storage
DEBU[0000] Using run root /run/user/1004/containers
DEBU[0000] Using static dir /home/ ***myuser or group*** /.local/share/containers/storage/libpod
DEBU[0000] Using tmp dir /run/user/1004/libpod/tmp
DEBU[0000] Using volume path /home/ ***myuser or group*** /.local/share/containers/storage/volumes
DEBU[0000] Using transient store: false
DEBU[0000] Not configuring container store
DEBU[0000] Initializing event backend journald
DEBU[0000] Configured OCI runtime crun initialization failed: creating OCI runtime exit files directory: mkdir /run/user/1004: permission denied
DEBU[0000] Configured OCI runtime crun-vm initialization failed: no valid executable found for OCI runtime crun-vm: invalid argument
DEBU[0000] Configured OCI runtime crun-wasm initialization failed: creating OCI runtime exit files directory: mkdir /run/user/1004: permission denied
DEBU[0000] Configured OCI runtime runc initialization failed: no valid executable found for OCI runtime runc: invalid argument
DEBU[0000] Configured OCI runtime runsc initialization failed: no valid executable found for OCI runtime runsc: invalid argument
DEBU[0000] Configured OCI runtime youki initialization failed: no valid executable found for OCI runtime youki: invalid argument
DEBU[0000] Configured OCI runtime krun initialization failed: no valid executable found for OCI runtime krun: invalid argument
DEBU[0000] Configured OCI runtime ocijail initialization failed: no valid executable found for OCI runtime ocijail: invalid argument
DEBU[0000] Configured OCI runtime runj initialization failed: no valid executable found for OCI runtime runj: invalid argument
DEBU[0000] Configured OCI runtime kata initialization failed: no valid executable found for OCI runtime kata: invalid argument
Error: default OCI runtime "crun" not found: invalid argument
DEBU[0000] Shutting down engines

```

The 3 entries in bold italics - I’m not sure if that was the user name or group name, as they both have the same name.

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [September 30, 2026, 11:04pm UTC](https://forum.virtualmin.com/t/install-container-recipe-on-sub-server/138056/14 "2026-09-30T23:04:44Z")

</div>

This looks like leftover Podman state.

Does this account have any existing Podman containers or application data, including for its other domains, or only these failed installation attempts?

---

<div class="post-metadata">

**Author:** ![robdawson](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/eb9ed0/32.png) [@robdawson](https://forum.virtualmin.com/u/robdawson)\
**Post date:** [September 30, 2026, 11:06pm UTC](https://forum.virtualmin.com/t/install-container-recipe-on-sub-server/138056/15 "2026-09-30T23:06:44Z")

</div>

Only the failed attempts. I didn’t have it setup on my old server, and only intend on making the change to Podman on the new server. This is the first recipe I’ve tried to install, and every attempt has produced the same error.

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [September 30, 2026, 11:35pm UTC](https://forum.virtualmin.com/t/install-container-recipe-on-sub-server/138056/16 "2026-09-30T23:35:29Z")

</div>

> [@robdawson](#):
>
> Only the failed attempts. I didn’t have it setup on my old server, and only intend on making the change to Podman on the new server. This is the first recipe I’ve tried to install, and every attempt has produced the same error.

Thanks! Since there are only failed attempts, we can just drop this account’s Podman storage and let Podman create a new one.

Replace `myuser` with the domain owner’s username, then copy and run this entire line:

```bash
sudo -H -u myuser sh -c 'set -e; cd "$HOME/.local/share/containers"; backup="storage.backup-$(date +%Y%m%d-%H%M%S)"; test ! -e "$backup"; mv -T -- storage "$backup"; printf "Backup saved to %s/%s\n" "$PWD" "$backup"; XDG_RUNTIME_DIR="/run/user/$(id -u)" podman info'

```

If it finishes without an error, try installing Trilium Notes again and let us know whether it worked.

---

<div class="post-metadata">

**Author:** ![robdawson](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/eb9ed0/32.png) [@robdawson](https://forum.virtualmin.com/u/robdawson)\
**Post date:** [September 30, 2026, 11:43pm UTC](https://forum.virtualmin.com/t/install-container-recipe-on-sub-server/138056/17 "2026-09-30T23:43:03Z")

</div>

> [@Ilia](#):
>
> `sudo -H -u myuser sh -c 'set -e; cd "$HOME/.local/share/containers"; backup="storage.backup-$(date +%Y%m%d-%H%M%S)"; test ! -e "$backup"; mv -T -- storage "$backup"; printf "Backup saved to %s/%s\n" "$PWD" "$backup"; XDG_RUNTIME_DIR="/run/user/$(id -u)" podman info'`

It appears to have worked correctly, the install completed without error. Now for the configuration! 😁

Thanks everyone for the assistance, it’s greatly appreciated.

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [September 30, 2026, 11:49pm UTC](https://forum.virtualmin.com/t/install-container-recipe-on-sub-server/138056/18 "2026-09-30T23:49:11Z")

</div>

> [@robdawson](#):
>
> It appears to have worked correctly, the install completed without error. Now for the configuration!

Did you perhaps bring `$HOME/.local/share/containers` from another server to the new one during the backup and restore?

---

<div class="post-metadata">

**Author:** ![robdawson](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/r/eb9ed0/32.png) [@robdawson](https://forum.virtualmin.com/u/robdawson)\
**Post date:** [September 30, 2026, 11:55pm UTC](https://forum.virtualmin.com/t/install-container-recipe-on-sub-server/138056/19 "2026-09-30T23:55:07Z")

</div>

I didn’t do that specifically or separately, but I backed up the complete domain and restored it from scratch on the new server, so it may have. The folder exists on my old server, but I didn’t try to create any containers or install any recipes on it that I can recall. I only discovered Podman when I was researching options for my new server, and I couldn’t get it to install on my old server, so I waited until V8 was released to get access to it. By then I was well down the path of migrating, so I don’t think I would have done anything to leave dregs on the old server.

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [October 8, 2026, 11:55pm UTC](https://forum.virtualmin.com/t/install-container-recipe-on-sub-server/138056/20 "2026-10-08T23:55:48Z")

</div>

Closed on October 8, 2026, 11:55pm UTC

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.
