# cgroups

Published articles for cgroups.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Docker: guía práctica de contenedores en Linux

DevFeed: [Docker: guía práctica de contenedores en Linux](<https://devfeed.tech/articles/docker-guia-practica-de-contenedores-en-linux-34055.md>)

Original publisher: [Read original article](<https://tengoping.com/blog/docker-guia-practica-contenedores-linux/>)

Author: Antonio Pérez

Published: 2026-08-02T00:00:00Z

Content type: tutorial

Language: es

Sources: [tengoping.com](<https://devfeed.tech/sources/tengoping-com.md>)

Topics: [Docker](<https://devfeed.tech/topics/docker.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Docker Compose](<https://devfeed.tech/topics/docker-compose.md>), [Dockerfile](<https://devfeed.tech/topics/dockerfile.md>), [container](<https://devfeed.tech/topics/container.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Kernel](<https://devfeed.tech/topics/kernel.md>)

Tags: [cgroups](<https://devfeed.tech/tags/cgroups.md>), [cli](<https://devfeed.tech/tags/cli.md>), [compose](<https://devfeed.tech/tags/compose.md>), [container](<https://devfeed.tech/tags/container.md>), [debian](<https://devfeed.tech/tags/debian.md>), [distro](<https://devfeed.tech/tags/distro.md>), [docker](<https://devfeed.tech/tags/docker.md>), [docker-compose](<https://devfeed.tech/tags/docker-compose.md>), [dockerignore-usage](<https://devfeed.tech/tags/dockerignore-usage.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [linux](<https://devfeed.tech/tags/linux.md>), [oci](<https://devfeed.tech/tags/oci.md>), [podman](<https://devfeed.tech/tags/podman.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

A practical Spanish-language guide to Docker on Linux. It explains container isolation through Linux namespaces and cgroups, installation on Ubuntu/Debian, Docker architecture, image layers and Dockerfiles, and introduces networks, volumes, Docker Compose, and security practices.

### Source excerpt

Guía práctica de Docker: arquitectura, capas de imagen, redes, volúmenes, Docker Compose y buenas prácticas de seguridad, con ejemplos reales.

## Kubelet Metrics: How cAdvisor and CRI Collect Kubernetes Stats

DevFeed: [Kubelet Metrics: How cAdvisor and CRI Collect Kubernetes Stats](<https://devfeed.tech/articles/kubelet-metrics-how-cadvisor-and-cri-collect-kubernetes-stats-19138.md>)

Original publisher: [Read original article](<https://learnkube.com/kubernetes-metrics-cadvisor-kubelet-cri>)

Author: Gulcan Topcu

Published: 2026-05-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [container](<https://devfeed.tech/topics/container.md>), [telemetry](<https://devfeed.tech/topics/telemetry.md>), [gRPC](<https://devfeed.tech/topics/grpc.md>), [Kernel](<https://devfeed.tech/topics/kernel.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [api-server](<https://devfeed.tech/tags/api-server.md>), [cgroups](<https://devfeed.tech/tags/cgroups.md>), [collect](<https://devfeed.tech/tags/collect.md>), [container](<https://devfeed.tech/tags/container.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [data](<https://devfeed.tech/tags/data.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [grafana](<https://devfeed.tech/tags/grafana.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [linux](<https://devfeed.tech/tags/linux.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [performance](<https://devfeed.tech/tags/performance.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [prometheus](<https://devfeed.tech/tags/prometheus.md>), [trace](<https://devfeed.tech/tags/trace.md>), [visibility](<https://devfeed.tech/tags/visibility.md>)

### AI overview

This tutorial explains how Kubernetes collects and exposes container, pod, and node metrics through kubelet, cAdvisor, the Linux kernel, and the Container Runtime Interface (CRI). It describes the shift toward CRI-native metrics over gRPC and how Prometheus, Grafana, and other observability systems consume the data.

### Source excerpt

Learn how kubelet collects Kubernetes metrics from cgroups, cAdvisor, containerd and CRI, and when pod and container stats move to the runtime.

## Introducción a contenedores con Podman en Linux

DevFeed: [Introducción a contenedores con Podman en Linux](<https://devfeed.tech/articles/introduccion-a-contenedores-con-podman-en-linux-34066.md>)

Original publisher: [Read original article](<https://tengoping.com/blog/introduccion-contenedores-podman-linux/>)

Author: Antonio Pérez

Published: 2026-01-04T00:00:00Z

Content type: tutorial

Language: es

Sources: [tengoping.com](<https://devfeed.tech/sources/tengoping-com.md>)

Topics: [podman](<https://devfeed.tech/topics/podman.md>), [Containers](<https://devfeed.tech/topics/containers.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [systemd](<https://devfeed.tech/topics/systemd.md>)

Tags: [cgroups](<https://devfeed.tech/tags/cgroups.md>), [cli](<https://devfeed.tech/tags/cli.md>), [debian](<https://devfeed.tech/tags/debian.md>), [docker](<https://devfeed.tech/tags/docker.md>), [linux](<https://devfeed.tech/tags/linux.md>), [oci](<https://devfeed.tech/tags/oci.md>), [podman](<https://devfeed.tech/tags/podman.md>), [rhel](<https://devfeed.tech/tags/rhel.md>), [root](<https://devfeed.tech/tags/root.md>), [terminal](<https://devfeed.tech/tags/terminal.md>), [ubuntu](<https://devfeed.tech/tags/ubuntu.md>), [ubuntu-24-04](<https://devfeed.tech/tags/ubuntu-24-04.md>)

### AI overview

A Spanish tutorial introducing Podman on Linux. It explains Podman's daemonless, OCI-compatible architecture, rootless container execution, isolation through user namespaces, version differences across distributions, and comparisons with Docker.

### Source excerpt

Podman en profundidad: arquitectura sin daemon, rootless por defecto, pods, integración con systemd/Quadlet, Cockpit y comparación con Docker.

## From Linux Primitives to Kubernetes Security Contexts

DevFeed: [From Linux Primitives to Kubernetes Security Contexts](<https://devfeed.tech/articles/from-linux-primitives-to-kubernetes-security-contexts-19144.md>)

Original publisher: [Read original article](<https://learnkube.com/security-contexts>)

Author: Dave Altena

Published: 2025-08-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [Security](<https://devfeed.tech/topics/security.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Containers](<https://devfeed.tech/topics/containers.md>), [Kernel](<https://devfeed.tech/topics/kernel.md>)

Tags: [cgroups](<https://devfeed.tech/tags/cgroups.md>), [config](<https://devfeed.tech/tags/config.md>), [containers](<https://devfeed.tech/tags/containers.md>), [filesystems](<https://devfeed.tech/tags/filesystems.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [kubernetes-security](<https://devfeed.tech/tags/kubernetes-security.md>), [learn](<https://devfeed.tech/tags/learn.md>), [linux](<https://devfeed.tech/tags/linux.md>), [security](<https://devfeed.tech/tags/security.md>)

### AI overview

This tutorial explains how Kubernetes Security Contexts control container privileges and how those settings map to underlying Linux primitives. It covers running containers as non-root users, managing capabilities, using read-only filesystems, and blocking privilege escalation.

### Source excerpt

Dive deep into Kubernetes Security Contexts and learn how to manage security settings for your pods and containers.

## Have We Reached a Distroless Tipping Point?

DevFeed: [Have We Reached a Distroless Tipping Point?](<https://devfeed.tech/articles/have-we-reached-a-distroless-tipping-point-13080.md>)

Original publisher: [Read original article](<https://www.chainguard.dev/unchained/have-we-reached-a-distroless-tipping-point>)

Published: 2025-03-18T00:00:00Z

Content type: opinion

Language: en

Sources: [Chainguard: Unchained](<https://devfeed.tech/sources/chainguard-unchained.md>)

Topics: [distroless](<https://devfeed.tech/topics/distroless.md>), [Containers](<https://devfeed.tech/topics/containers.md>), [Cloud Native Ecosystem](<https://devfeed.tech/topics/cloud-native-ecosystem.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Linux](<https://devfeed.tech/topics/linux.md>)

Tags: [beyond-distro](<https://devfeed.tech/tags/beyond-distro.md>), [cgroups](<https://devfeed.tech/tags/cgroups.md>), [chainguard-os](<https://devfeed.tech/tags/chainguard-os.md>), [chainguard-your-os](<https://devfeed.tech/tags/chainguard-your-os.md>), [cloud-native](<https://devfeed.tech/tags/cloud-native.md>), [containers](<https://devfeed.tech/tags/containers.md>), [distroless](<https://devfeed.tech/tags/distroless.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [linux](<https://devfeed.tech/tags/linux.md>), [oci](<https://devfeed.tech/tags/oci.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [secure-by-design](<https://devfeed.tech/tags/secure-by-design.md>), [wolfi](<https://devfeed.tech/tags/wolfi.md>)

### AI overview

The article argues that containerization and cloud-native software development have created an inflection point in open source software delivery. It presents the evolution from Linux Containers to Docker and the Open Container Initiative as milestones supporting a shift from traditional Linux distributions toward distroless, secure-by-design, continuously updated software.

### Source excerpt

The world is at an inflection point in open source software delivery. See where the software distribution status quo is at, and what is next.

## 重新思考 Go：了解程序在线上是如何运行的

DevFeed: [重新思考 Go：了解程序在线上是如何运行的](<https://devfeed.tech/articles/go-40988.md>)

Original publisher: [Read original article](<https://blog.joway.io/posts/golang-rethink-program-in-realworld/>)

Author: Joway

Published: 2024-12-10T00:00:00Z

Content type: article

Language: zh

Sources: [Random Thoughts](<https://devfeed.tech/sources/random-thoughts.md>)

Topics: [Go Language](<https://devfeed.tech/topics/go-language.md>), [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [cpu](<https://devfeed.tech/topics/cpu.md>), [cgroups](<https://devfeed.tech/topics/cgroups.md>), [Linux](<https://devfeed.tech/topics/linux.md>)

Tags: [cgroups](<https://devfeed.tech/tags/cgroups.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [go](<https://devfeed.tech/tags/go.md>), [golang](<https://devfeed.tech/tags/golang.md>), [k8s](<https://devfeed.tech/tags/k8s.md>), [linux](<https://devfeed.tech/tags/linux.md>), [mechanical-sympathy](<https://devfeed.tech/tags/mechanical-sympathy.md>), [quota](<https://devfeed.tech/tags/quota.md>), [runtime](<https://devfeed.tech/tags/runtime.md>), [tech](<https://devfeed.tech/tags/tech.md>), [waiting](<https://devfeed.tech/tags/waiting.md>)

### AI overview

This article examines how Go programs run in production environments, focusing on the relationship between Kubernetes CPU quotas, physical CPU availability, cgroups, and Go's GOMAXPROCS setting. It explains that CPU quota limits aggregate execution time, while available parallelism can depend on the host's physical cores and the program's design. It also introduces scheduling latency and the factors that affect the computing resources a Go service actually receives.

### Source excerpt

重新思考 Go 系列：这个系列希望结合工作中在 Go 编程与性能优化中遇到过的问题，探讨 Go 在语言哲学、底层实现和现实需求三者之间关系与矛盾。 前言 过去一段时间，在大量的线上服务 case study 过程中，逐步深入了解了如今的业务 Go 进程是如何在一系列繁杂的基础设施之上运行的。有些表现在意料之中，也有一些出乎意料的发现。

## Debugging Systems in the Cloud: MySQL, Kubernetes, and Cgroups

DevFeed: [Debugging Systems in the Cloud: MySQL, Kubernetes, and Cgroups](<https://devfeed.tech/articles/debugging-systems-in-the-cloud-mysql-kubernetes-and-cgroups-1361.md>)

Original publisher: [Read original article](<https://shopify.engineering/debugging-systems-cloud-mysql-kubernetes-cgroups>)

Author: Rodrigo Saito

Published: 2021-10-21T17:30:01Z

Content type: article

Language: en

Sources: [Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering.md>), [Shopify Engineering - Shopify Engineering](<https://devfeed.tech/sources/shopify-engineering-shopify-engineering.md>)

Topics: [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [MySQL](<https://devfeed.tech/topics/mysql.md>), [debugging](<https://devfeed.tech/topics/debugging.md>), [bug](<https://devfeed.tech/topics/bug.md>), [Cloud](<https://devfeed.tech/topics/cloud.md>), [Google Cloud Platform (GCP)](<https://devfeed.tech/topics/google-cloud.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [systems](<https://devfeed.tech/topics/systems.md>)

Tags: [bug](<https://devfeed.tech/tags/bug.md>), [cgroups](<https://devfeed.tech/tags/cgroups.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [google-cloud-platform](<https://devfeed.tech/tags/google-cloud-platform.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [linux](<https://devfeed.tech/tags/linux.md>), [memory](<https://devfeed.tech/tags/memory.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [performance](<https://devfeed.tech/tags/performance.md>), [systems](<https://devfeed.tech/tags/systems.md>), [upgrades](<https://devfeed.tech/tags/upgrades.md>)

### AI overview

This article investigates inconsistent startup and shutdown times for MySQL Pods in Shopify's KateSQL platform, which runs on Google Cloud's Kubernetes Engine. The investigation identifies a bug in the Linux kernel memory controller and describes mitigation by replacing older Kubernetes nodes.

### Source excerpt

An overview of how we investigated and solved the issue of some Kubernetes Pods running MySQL starting up and shutting down slower than other similar Pods with the same data set.

## Setting the right requests and limits in Kubernetes

DevFeed: [Setting the right requests and limits in Kubernetes](<https://devfeed.tech/articles/setting-the-right-requests-and-limits-in-kubernetes-19146.md>)

Original publisher: [Read original article](<https://learnkube.com/setting-cpu-memory-limits-requests>)

Author: Gulcan Topcu

Published: 2020-09-02T00:00:00Z

Content type: tutorial

Language: en

Sources: [Learnk8s](<https://devfeed.tech/sources/learnk8s.md>)

Topics: [Kubernetes](<https://devfeed.tech/topics/kubernetes.md>), [cpu](<https://devfeed.tech/topics/cpu.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [autoscaling](<https://devfeed.tech/topics/autoscaling.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [YAML](<https://devfeed.tech/topics/yaml.md>)

Tags: [autoscaling](<https://devfeed.tech/tags/autoscaling.md>), [cgroups](<https://devfeed.tech/tags/cgroups.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [container](<https://devfeed.tech/tags/container.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [kubernetes](<https://devfeed.tech/tags/kubernetes.md>), [memory](<https://devfeed.tech/tags/memory.md>), [quotas](<https://devfeed.tech/tags/quotas.md>), [resource](<https://devfeed.tech/tags/resource.md>), [systems](<https://devfeed.tech/tags/systems.md>), [yaml](<https://devfeed.tech/tags/yaml.md>)

### AI overview

A tutorial explaining how Kubernetes CPU and memory requests and limits affect scheduling, Linux cgroups, resource contention, eviction, out-of-memory handling, and autoscaling.

### Source excerpt

Learn how Kubernetes CPU and memory requests and limits control scheduling, cgroup weights and quotas, eviction, throttling, and OOM kills.

## Secret Design Docs: Multi-Tenant Orchestrator

DevFeed: [Secret Design Docs: Multi-Tenant Orchestrator](<https://devfeed.tech/articles/secret-design-docs-multi-tenant-orchestrator-35194.md>)

Original publisher: [Read original article](<https://blog.jessfraz.com/post/secret-design-docs-multi-tenant-orchestrator/>)

Published: 2019-02-12T15:09:26Z

Content type: article

Language: en

Sources: [Jessie Frazelle](<https://devfeed.tech/sources/jessie-frazelle.md>)

Topics: [Containers](<https://devfeed.tech/topics/containers.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [Security](<https://devfeed.tech/topics/security.md>), [Architecture & Design](<https://devfeed.tech/topics/architecture-design.md>), [Operating system](<https://devfeed.tech/topics/operating-system.md>), [Network](<https://devfeed.tech/topics/network.md>), [Linux](<https://devfeed.tech/topics/linux.md>)

Tags: [cgroups](<https://devfeed.tech/tags/cgroups.md>), [containers](<https://devfeed.tech/tags/containers.md>), [control-plane](<https://devfeed.tech/tags/control-plane.md>), [docker](<https://devfeed.tech/tags/docker.md>), [firewall](<https://devfeed.tech/tags/firewall.md>), [operating-systems](<https://devfeed.tech/tags/operating-systems.md>), [security](<https://devfeed.tech/tags/security.md>)

### AI overview

A design document for a multi-tenant container orchestrator intended to run third-party code with strong isolation. It proposes layered security controls, resource limits, network isolation, a secure minimal host operating system, and mechanisms to terminate abusive workloads and update the agent.

### Source excerpt

I thought it would be fun to start a blog post series containing design docs from my personal archive that never saw the light of day. This will be the first of the series. It contains what I thought about in detail for a general multi-tenant secured container orchestrator. The use case would be for running third party code securely isolated from each other. If you would like to see this in google doc form it also lives here. Requirements Base API to run docker images in such a way that each process is isolated entirely from all the others. Abusive actions can be terminated immediately. The agent should be auto-updateable to handle security issues as they arise. Ability to use the entire syscall interface for the processes being run. This all assumes that you have some sort of software and hardware level root of trust you can use to ensure security as well. Other Features Disallow and kill any and all bitcoin miners from using the infrastructure, BPF tracers Firewall off any existing network endpoints Firewall off the container running the process from everything around it on the local links and any reachable internal IP If one layer of isolation is compromised, rely on another layer of isolation entirely. If two layers are compromised then we at least tried our best... Design The host OS and up needs to be secure. Overview We require the following per container running: Block/io cgroups so that disk does not have noisy neighbors CPU limit Memory limit Network/bandwidth limiting Isolated network from everything else on the network (BPF or iptables) Host OS The host OS should be a reduced operating system, minimal distribution (though possibly shared with the OS used inside containers). This is for reasons of security in locking down the available weaknesses in the host environment and lessening the control plane attack surface. Operating Systems Examples of these Operating Systems include: CoreOS Container Linux Container Optimized OS Intel Clear Linux LinuxKit Featur

## Setting the Record Straight: containers vs. Zones vs. Jails vs. VMs

DevFeed: [Setting the Record Straight: containers vs. Zones vs. Jails vs. VMs](<https://devfeed.tech/articles/setting-the-record-straight-containers-vs-zones-vs-jails-vs-vms-35156.md>)

Original publisher: [Read original article](<https://blog.jessfraz.com/post/containers-zones-jails-vms/>)

Published: 2017-03-28T19:17:58Z

Content type: opinion

Language: en

Sources: [Jessie Frazelle](<https://devfeed.tech/sources/jessie-frazelle.md>)

Topics: [Containers](<https://devfeed.tech/topics/containers.md>), [Linux](<https://devfeed.tech/topics/linux.md>)

Tags: [cgroups](<https://devfeed.tech/tags/cgroups.md>), [containers](<https://devfeed.tech/tags/containers.md>), [linux](<https://devfeed.tech/tags/linux.md>), [vs](<https://devfeed.tech/tags/vs.md>)

### AI overview

The article compares Linux containers with Solaris Zones, BSD Jails, and virtual machines. It argues that containers are a term for combinations of Linux namespaces and cgroups, whose designs differ from those of Zones, Jails, and VMs, and describes namespace sharing for inspection and debugging.

### Source excerpt

I'm tired of having the same conversation over and over again with people so I figured I would put it into a blog post. Many people ask me if I have tried or what I think of Solaris Zones / BSD Jails. The answer is simply: I have tried them and I definitely like them. The conversation then heads towards them telling me how Zones and Jails are far superior to containers and that I should basically just give up with Linux containers and use VMs. Which to be honest is a bit forward to someone who has spent a large portion of her career working with containers and trying to make containers more secure. Here is what I tell them: The Design of Solaris Zones, BSD Jails, VMs and containers are very different. Solaris Zones, BSD Jails, and VMs are first class concepts. This is clear from the Solaris Zone Design Spec and the BSD Jails Handbook. I hope it can go without saying that VMs are very much a first class object without me having to link you somewhere :P. Containers on the other hand are not real things. I have said this in many talks and I'm saying it again now. CONTAINERS ARE NOT A REAL THING!!! @jessfraz talking containers #GoogleNext17 pic.twitter.com/gzxjNnSk2n -- Jorge Silva (@thejsj) March 10, 2017 A "container" is just a term people use to describe a combination of Linux namespaces and cgroups. Linux namespaces and cgroups ARE first class objects. NOT containers. I am trying to make this distinction very clear to make a point. The designs are different. PERIOD. Let's go over some of the things you can do with containers that you CANNOT do with Jails or Zones or VMs. Sharing Namespaces Since containers are made with specific building blocks of namespaces this allows for doing some super neat things like sharing namespaces. There are many different namespaces but I will give a couple examples. This specific example can be seen in a demo by Arnaud Porterie from our talk at Dockercon EU in 2015. You can have your application running in one container, then in a diffe

## Getting Towards Real Sandbox Containers

DevFeed: [Getting Towards Real Sandbox Containers](<https://devfeed.tech/articles/getting-towards-real-sandbox-containers-35166.md>)

Original publisher: [Read original article](<https://blog.jessfraz.com/post/getting-towards-real-sandbox-containers/>)

Published: 2016-05-01T19:17:58Z

Content type: article

Language: en

Sources: [Jessie Frazelle](<https://devfeed.tech/sources/jessie-frazelle.md>)

Topics: [Containers](<https://devfeed.tech/topics/containers.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [Chrome](<https://devfeed.tech/topics/chrome.md>)

Tags: [cgroups](<https://devfeed.tech/tags/cgroups.md>), [chrome](<https://devfeed.tech/tags/chrome.md>), [containers](<https://devfeed.tech/tags/containers.md>), [docker](<https://devfeed.tech/tags/docker.md>), [linux](<https://devfeed.tech/tags/linux.md>), [sandbox](<https://devfeed.tech/tags/sandbox.md>), [selinux](<https://devfeed.tech/tags/selinux.md>)

### AI overview

The article examines whether containers can provide application-sandboxing properties comparable to the Chrome sandbox. It explains that containers use Linux features such as user namespaces, seccomp, and cgroups, but highlights privilege and unprivileged cgroup-creation challenges, especially when containers run as root.

### Source excerpt

Containers are all the rage right now. At the very core of containers are the same Linux primitives that are also used to create application sandboxes. The most common sandbox you may be familiar with is the Chrome sandbox. You can read in detail about the Chrome sandbox here: chromium.googlesource.com/chromium/src/+/master/docs/linux_sandboxing.md. The relevant aspect for this article is the fact it uses user namespaces and seccomp. Other deprecated features include AppArmor and SELinux. Sound familiar? That's because containers, as you've come to know them today, share the same features. Why are containers not currently being considered a "sandbox"? One of the key differences between how you run Chrome and how you run a container are the privileges used. Chrome runs as your own unprivileged user. Most containers (be it docker, runc, or rkt) run as root. Yes, we all know that containers run unprivileged processes; but creating and running the containers themselves requires root privileges at some point. How can we run containers as an unprivileged user? Easy! With user namespaces, you might say. But it's not exactly that simple. One of the main differences between the Chrome sandbox and containers is cgroups. Cgroups control what a process can use. Whereas namespaces control what a process can see. Containers have cgroup resource management built in. Creating cgroups from an unprivileged user is a bit difficult, especially device control groups. If we ignore, for the time being, this huge tire fire that is creating cgroups as an unprivileged user, then unprivileged containers are easy. User namespaces allow us to create all the namespaces without any further privileges. The one key caveat being that the {uid,gid}_map must have the current host user mapped to the container uid that the process will be run as. The size of the {uid,gid}_map can also only be 1. For example if you are running as uid 1000 to spawn the container, your {uid,gid}_map for the process would b

## Using systemd to Run Python Scripts as Daemons

DevFeed: [Using systemd to Run Python Scripts as Daemons](<https://devfeed.tech/articles/the-joy-of-systemd-35471.md>)

Original publisher: [Read original article](<https://darkcoding.net/software/the-joy-of-systemd/>)

Author: Graham King

Published: 2016-01-12T16:51:04Z

Content type: tutorial

Language: en

Sources: [Graham King](<https://devfeed.tech/sources/graham-king.md>)

Topics: [systemd](<https://devfeed.tech/topics/systemd.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Script](<https://devfeed.tech/topics/script.md>), [Security](<https://devfeed.tech/topics/security.md>)

Tags: [cgroups](<https://devfeed.tech/tags/cgroups.md>), [linux](<https://devfeed.tech/tags/linux.md>), [scripts](<https://devfeed.tech/tags/scripts.md>), [security](<https://devfeed.tech/tags/security.md>), [socket](<https://devfeed.tech/tags/socket.md>), [software](<https://devfeed.tech/tags/software.md>), [systemd](<https://devfeed.tech/tags/systemd.md>)

### AI overview

A tutorial on converting a Python script into a systemd daemon. It explains unit files, output buffering, logging, security features using cgroups, socket activation, and related systemd capabilities.

### Source excerpt

Embracing the future: A quick guide to systemd for modern daemon management.

## Are LXC and Docker secure?

DevFeed: [Are LXC and Docker secure?](<https://devfeed.tech/articles/are-lxc-and-docker-secure-27098.md>)

Original publisher: [Read original article](<https://andrea.corbellini.name/2015/02/20/are-lxc-and-docker-secure/>)

Author: andreacorbellini

Published: 2015-02-20T16:36:00Z

Content type: article

Language: en

Sources: [Andrea Corbellini](<https://devfeed.tech/sources/andrea-corbellini.md>)

Topics: [Security](<https://devfeed.tech/topics/security.md>), [Containers](<https://devfeed.tech/topics/containers.md>), [Docker](<https://devfeed.tech/topics/docker.md>), [Architecture & Design](<https://devfeed.tech/topics/architecture-design.md>), [Linux Kernel](<https://devfeed.tech/topics/linux-kernel.md>)

Tags: [cgroups](<https://devfeed.tech/tags/cgroups.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [containers](<https://devfeed.tech/tags/containers.md>), [docker](<https://devfeed.tech/tags/docker.md>), [information-technology](<https://devfeed.tech/tags/information-technology.md>), [linux-kernel](<https://devfeed.tech/tags/linux-kernel.md>), [lxc](<https://devfeed.tech/tags/lxc.md>), [security](<https://devfeed.tech/tags/security.md>)

### AI overview

This article examines the security boundaries of LXC and Docker, explaining what container isolation provides, what it does not provide, and how default configuration affects the ability to run untrusted code.

### Source excerpt

Since its initial release in 2008, LXC has become widespread among servers. Today, it is becoming the preferred deployment strategy in many contexts, also thanks to Docker and, more recently, LXD. LXC and Docker are used not only to achieve modular architecture design, but also as a way to run untrusted code in an isolated environment. We can agree that the LXC and Docker ...