Menu

1 / 2

Docker Internals #1

DEV Community: docker·Younes Merzouka·6 days ago
#Xy9IelNm
#devtodocker#devto#dev#docker#host
Long article (1613 words) — no AI summary yet.
Reading 0:00
15s threshold

In this series, we will talk a bit about various concepts related to Docker internals. I do not have a specific structure in mind, but I might figure something out as we go. I will at least try to be consistent this time (KCX mentioned), unlike before.

We will start by talking about Linux Namespaces and how they are used within Docker containers.

What is a Linux Namespace

A Linux namespace is a feature of the Linux kernel that allows you to isolate system resources for specific processes. For example, say you want to test out a suspicious program that you think might attempt to compromise your machine in some form (e.g., sending your data to a remote server). You can use a Linux namespace to execute the process in its own space (a network namespace in the example I mentioned) and restrict its internet access.

Since a Linux system doesn't have a single set of resources, it has different namespaces to isolate each type of resource (network, mount, IPC, PID, ...).…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.