News for hackers. Stuff that matters.
Re:Show HN: GUI Applications in Podman on Wayland by deknos on Saturday March 26, 2022 @04:49PM (#30815230)
This looks promising. Now you just have to find a way to tunnel/interface the xdg-standards and you can replace flatpak...
Re:Show HN: GUI Applications in Podman on Wayland by spinachsalad on Saturday March 26, 2022 @12:37PM (#30813297)
Haven't you just reinvented Flatpak? ;)
Re:Show HN: GUI Applications in Podman on Wayland by moody5bundle on Saturday March 26, 2022 @01:00PM (#30813444)
Flatpak with Dockerfiles and yaml config! :)
Re:Show HN: GUI Applications in Podman on Wayland by Filligree on Saturday March 26, 2022 @02:05PM (#30813927)
Is this an advantage?
Re:Show HN: GUI Applications in Podman on Wayland by deknos on Saturday March 26, 2022 @04:51PM (#30815237)
well, building stuff with flatpak is not THAT intuitive. no package format before docker was from my point of view. on the other side, packaging also cleans up and docker-insides often are not cleaned up :D
Re:Show HN: GUI Applications in Podman on Wayland by moody5bundle on Saturday March 26, 2022 @03:08PM (#30814419)
depends on your use case. I wanted a way of removing network access for my text editors and starting ephermal firefox instances that are completely independent from each other. Its just an easier way to hack around an application tbh.
Re:Show HN: GUI Applications in Podman on Wayland by aaomidi on Saturday March 26, 2022 @02:38PM (#30814165)
I'm thinking of how this could be used on Windows systems.

But honestly it's just really cool.

Re:Show HN: GUI Applications in Podman on Wayland by ayanamist on Saturday March 26, 2022 @09:32PM (#30816952)
Re:Show HN: GUI Applications in Podman on Wayland by vanous on Saturday March 26, 2022 @04:20PM (#30815022)
I have been looking for a way to replace"singularity" (now called app-containers). Is it possible to use podman to run a cli program inside podman container and it would run the program in the container but use local files to work with?
Re:Show HN: GUI Applications in Podman on Wayland by moody5bundle on Saturday March 26, 2022 @04:29PM (#30815083)
that is exactly what this is intended for :) look at this dockerfile: https://github.com/mody5bundle/capps/blob/main/container/san... and this "config" lines https://github.com/mody5bundle/capps/blob/aec6a118139c2008c3... this will start a cheap "sandbox" aka a gnome-terminal window with its own filesystem and process tree. you just have to change the config file to mount a volume on the paths you want and maybe tweak the image to your likings :)
Re:Show HN: GUI Applications in Podman on Wayland by vanous on Saturday March 26, 2022 @04:33PM (#30815110)
Awesome, thank you very much, I will give it a spin!
Re:Show HN: GUI Applications in Podman on Wayland by yewenjie on Saturday March 26, 2022 @02:38PM (#30814164)
I'm curious, how do you limit memory or CPU resources in a regular linux system for a process?
Re:Show HN: GUI Applications in Podman on Wayland by aaomidi on Saturday March 26, 2022 @02:39PM (#30814170)
Cgroups

For example, systemd integrates with cgroups and you can limit resource use for services started with it

Re:Show HN: GUI Applications in Podman on Wayland by xorcist on Saturday March 26, 2022 @05:56PM (#30815715)

  man ulimit
Not sure what constitutes a regular Linux system but apart from the shell command the underlying ulimit syscall getrlimit(2) is in the kernel itself. One can set hard and soft limits on a per process granularity.

Normally each service has a dedicated uid and limits as well as nice levels are set in /etc/security/limits.conf which is read on login sessions by pam_limits.

This is in every bsd- and posix-like system and some of the soft limits have standardised signals assigned to them. The man page has all the details and is easy enough to understand.

Re:Show HN: GUI Applications in Podman on Wayland by cranekam on Saturday March 26, 2022 @07:13PM (#30816193)
ulimit on Linux doesn’t support limiting RSS, only VSZ. I’d argue that limiting RSS — i.e., how much of the process in main memory — is more aligned with what someone wants than how big its virtual address space is, which can easily be distorted by e.g. mmap()ing a huge file in.

IME trying to restrict by VSZ just leads to surprises when malloc() fails at surprising times. cgroups are a much better way to go.