Earlier quoted context omitted.
Can you point me to some online resources? I'd like to learn more about this.
https://lwn.net/Articles/324291/ https://lwn.net/Articles/325369/ https://lwn.net/Articles/327738/
Linux containers in a few lines of code
41–50 of 87 posts
Re: Linux containers in a few lines of code
#42Could someone comment on how secure such a container is, at least nominally? Should I be able to theoretically run untrusted code on such a container if the system is bug-free and I add proper error-checking to the code? Or are there things that you'd need to worry about the code being able to access? Any considerations regarding sudo permissions?
Big “if”. There has never, in thirty years, been a Linux that lacked a user-to-root privilege escalation path. Running untrusted code in containers is the same as it’s ever been: totally unsafe. VMs are safer, or, minimally, ptrace sandboxes intercepting all syscalls.
Re: Linux containers in a few lines of code
#43Linux containers in one shell statement $ echo $$ > tasks
Re: Linux containers in a few lines of code
#44A little bit of education about container systems in linux[1]. A container system is typically made up a number of components: isolation layer : the piece that limits privileges and resource usage. (On linux, this is usually handled by cgroups and the kernel, but could also be handled by something like kvm for vm-based containers) raw container configuration : Given an image and some metadata (like cpu limits), launc…
I feel like podman is proving that you don't really need the api daemon and a porcelain over runc with a one-off process supervisor is sufficient for a good number of workloads. Being able to run containers like any other process and leave the lifecycle management to systemd is actually really nice.
Re: Linux containers in a few lines of code
#45Definitely worth the $12.
Re: Linux containers in a few lines of code
#46Earlier quoted context omitted.
Big “if”. There has never, in thirty years, been a Linux that lacked a user-to-root privilege escalation path. Running untrusted code in containers is the same as it’s ever been: totally unsafe. VMs are safer, or, minimally, ptrace sandboxes intercepting all syscalls.
Are you saying because of bugs or are you saying it's by design? I explicitly said ignore OS bugs.
Re: Linux containers in a few lines of code
#47Linux containers in one shell statement $ echo $$ > tasks
I'm not sure if this is serious or a joke, but can you explain it further?
Re: Linux containers in a few lines of code
#48Earlier quoted context omitted.
Could not agree more. As a Fedora user I was mildly intrigued when Podman showed up, I played with it briefly but stopped because most of my projects used docker-compose, which doesn't work with Podman. When I went to work at Red Hat I decided to really try Podman, and I love it now. Once I discovered that Podman supports Kubernetes Pods (same YAML and all) I realized how clunky docker-compose actually is. Since most…
podman-compose works fine for me, despite being advertised as "still under development". https://github.com/containers/podman-compose
Re: Linux containers in a few lines of code
#49Re: Linux containers in a few lines of code
#50https://www.polarsparc.com/xhtml/Containers-1.html https://www.polarsparc.com/xhtml/Containers-2.html