mqueue msg_max in rootless container
by Michael Ivanov
Hallo!
I'm trying to run my application in podman rootless container and I stumble
on following problem: my program needs /proc/sys/fs/mqueue/msg_max to be at
least 256, but in running container this value is just 10. When I try to
specify this parameter while running the image (--sysctl 'fs.mqueue.msg_max=256')
I get the following error:
Error: open /proc/sys/fs/mqueue/msg_max: Permission denied: OCI permission denied
and container is not created.
My host where container is being run has this parameter set to 256. How can I
expose current host setting for msg_max to my container?
Best regards,
--
\ / | |
(OvO) | Михаил Иванов |
(^^^) | |
\^/ | E-mail: ivans(a)isle.spb.ru |
^ ^ | |
12 months
podman container storage backup
by Michael Ivanov
Greetings,
I make periodic backups of my laptop where I use some podman containers.
To perform a backup I just invoke rsync to copy my /home/xxxx/.local/share/containers
directory to nfs mounted filesystem.
Containers are running, but quiescent, no real activity occurs.
Is this a correct way to back up or is there anything special about
container directory to be taken into account? As far as I understand
some hash-named subdirectories are shared between different containers
and images using special kind of mounts, can this lead to duplicate
copies r inconsistencies?
Underlying fs is btrfs.
Thanks,
--
\ / | |
(OvO) | Михаил Иванов |
(^^^) | |
\^/ | E-mail: ivans(a)isle.spb.ru |
^ ^ | |
2 years, 1 month
cgroups not configured for container
by ugiwgh@qq.com
There is somthing warning, when I add "--pid=host".
How can I get this warning gone?
OS: 8.3.2011
Podman: 2.2.1
[rsync@rsyncdk2 ~]$ podman run --rm --pid=host fb7ad16314ee sleep 3
WARN[0000] cannot toggle freezer: cgroups not configured for container
WARN[0000] lstat : no such file or directory
2 years, 5 months
podman libpod error
by Michael Ivanov
Greetings,
Wherever I run some utility, which generates a lot of output to tty inside a container
podman exec aborts with a following error:
Error: timed out waiting for file
/home/user/.local/share/containers/storage/vfs-containers/e369fbde8245633a58c1ce1c96abfcef2b4baecca2a024b1924fe9f91b7efdcf/userdata/72ae2dfe7ce68233b56a360cafd34f3ac5d555f48ca8cf32c0a0aa06dc3b510a/exit/e369fbde8245633a58c1ce1c96abfcef2b4baecca2a024b1924fe9f91b7efdcf:
internal libpod error
The problem can be recreated with following commands:
podman run --name test --replace --detach --entrypoint '[ "/bin/sleep", "365d" ]' alpine
podman exec -it test bash
while true; do echo \
======================================================================================================================================;
done
Is this a known issue?
My podman is verion 3.4.7, running rootless under debian sid (bookworm)
Best regards,
--
\ / | |
(OvO) | Михаил Иванов |
(^^^) | |
\^/ | E-mail: ivans(a)isle.spb.ru |
^ ^ | |
2 years, 6 months
How to clone a container?
by Clemens Eisserer
Hi,
I have to use some non-well-made containers running a proprietary database
product, where the data-directory can not be separated easily from the rest
of the container. So modified state is not only stored at some specific
paths, which I could re-direct to volumes, but spread over the whole
file-system.
Is there an easy way to backup such a container as a whole?
I already tried to export the container to an image and later on re-import
it, however it seems during this process some metadata is lost - when I try
to start that re-imported container, podman complains about missing start
script/commands.
I already found podman clone, however on my system (fedora 35) it doesn't
seem to be available.
Are there maybe other ways to duplicate/export an existing container and
keeping the clone in a working state?
Thanks, Clemens
2 years, 6 months
podman unhappy with usb device absent - ?
by lejeczek
Hi guys
I get this, with I think is really weird and I hope somebody
could shed more light on it.
-> $ podman container restart wordpress.test.bits
Error: crun: error stat'ing file `/dev/bus/usb/001/003`: No
such file or directory: OCI runtime attempted to invoke a
command that was not found
There is only one USB I can guess is in play - an USB NIC
but it has nothing to do with podman container nor its networks.
But I also get this (different host from above):
-> $ podman container restart wordpress.test.bits
Error: crun: error stat'ing file `/dev/fb0`: No such file or
directory: OCI runtime attempted to invoke a command that
was not found
What is podman/crun doing there & why?
v 4.0.3
many thanks, L.
2 years, 6 months