Uid Toolbox Fedora 31

Hi all.
I’m trying to create a container with Toolbox in Fedora 31 Silverblue. But… It doesn’t work:

$ toolbox -v create
toolbox: running as real user ID 1000
toolbox: resolved absolute path for /usr/bin/toolbox to /usr/bin/toolbox
toolbox: checking if /etc/subgid and /etc/subuid have entries for user
toolbox: /etc/subgid and /etc/subuid don’t have entries for user
See the podman(1), subgid(5), subuid(5) and usermod(8) manuals for more
information.

Any idea how to fix it?

Thanks!!

You need to add entries into subuid and subgid files…

Assuming /etc/subuid and /etc/subgid are empty then something like this will help (substitute fred for your user name)…

sudo sh -c 'echo "fred:100000:65536" >> /etc/subuid'
sudo sh -c 'echo "fred:100000:65536" >> /etc/subgid'

If you do have entries in the file then you will need to adjust the 100000 value so that they do not overlap.

Since my system once threw me out of the session to the login screen, I’ve had this problem too.

toolbox -v 
DEBU Running as real user ID 1000                 
DEBU Resolved absolute path to the executable as /usr/bin/toolbox 
DEBU Running on a cgroups v2 host                 
DEBU Looking up sub-GID and sub-UID ranges for user tealk 
DEBU Looking up sub-GID and sub-UID ranges failed: cannot dlopen(3) libsubid.so.5.0.0 
Error: Missing subgid and/or subuid ranges for user tealk
See the podman(1), subgid(5), subuid(5) and usermod(8) manuals for more
information.
cat /etc/subuid
tealk:524288:65536

cat /etc/subgid
tealk:524288:65536