TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Building a Linux Container Using Namespaces: Part – 1 (2020)

232 pointsby Arteiiiabout 1 year ago

10 comments

ofey404about 1 year ago
Obviously, there is a part 2:<p><a href="https:&#x2F;&#x2F;www.polarsparc.com&#x2F;xhtml&#x2F;Containers-2.html" rel="nofollow">https:&#x2F;&#x2F;www.polarsparc.com&#x2F;xhtml&#x2F;Containers-2.html</a>
asicspabout 1 year ago
See also:<p>* The What, Why and How of Containers (<a href="https:&#x2F;&#x2F;www.annwan.me&#x2F;computers&#x2F;what-why-how-containers&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.annwan.me&#x2F;computers&#x2F;what-why-how-containers&#x2F;</a>)<p>* Containers from Scratch (<a href="https:&#x2F;&#x2F;ericchiang.github.io&#x2F;post&#x2F;containers-from-scratch&#x2F;" rel="nofollow">https:&#x2F;&#x2F;ericchiang.github.io&#x2F;post&#x2F;containers-from-scratch&#x2F;</a>)<p>* Linux Containers From Scratch in C (<a href="https:&#x2F;&#x2F;www.lucavall.in&#x2F;blog&#x2F;barco-linux-containers-from-scratch-in-c" rel="nofollow">https:&#x2F;&#x2F;www.lucavall.in&#x2F;blog&#x2F;barco-linux-containers-from-scr...</a>)<p>* Life of a Container (<a href="https:&#x2F;&#x2F;indradhanush.github.io&#x2F;blog&#x2F;life-of-a-container&#x2F;" rel="nofollow">https:&#x2F;&#x2F;indradhanush.github.io&#x2F;blog&#x2F;life-of-a-container&#x2F;</a>)
评论 #40010013 未加载
评论 #40020195 未加载
评论 #40012280 未加载
tyingqabout 1 year ago
You can get a sort of &quot;reader&#x27;s digest&quot; version of this by having a look at &quot;bocker&quot;. It&#x27;s about 120 lines of bash that implements the important bits of docker using nsenter, btrfs, cgcreate, etc.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;p8952&#x2F;bocker&#x2F;blob&#x2F;master&#x2F;bocker">https:&#x2F;&#x2F;github.com&#x2F;p8952&#x2F;bocker&#x2F;blob&#x2F;master&#x2F;bocker</a>
zhengiszenabout 1 year ago
I guess cgroups come as version 2 <a href="https:&#x2F;&#x2F;www.redhat.com&#x2F;en&#x2F;blog&#x2F;world-domination-cgroups-rhel-8-welcome-cgroups-v2" rel="nofollow">https:&#x2F;&#x2F;www.redhat.com&#x2F;en&#x2F;blog&#x2F;world-domination-cgroups-rhel...</a>
benhoffabout 1 year ago
If you were looking to create testing for networking, i.e., simulating network dropouts for a client-server connections, is this something that you can use namespaces for, or would virtual machines be more fit for purpose?
评论 #40014555 未加载
评论 #40015451 未加载
WhatIsDukkhaabout 1 year ago
This looks to be using cgroups v1 and should be updated to v2 as its not directly compatible and would improve things understanding wise.
begueradjabout 1 year ago
This is what I used as a university student. Pretty effective. But I guess the author did not share his opinion about them.
shivshivshivabout 1 year ago
What&#x27;s the difference between chroot and the mount namespace type?
评论 #40033173 未加载
mperhamabout 1 year ago
Based on Ubuntu 18.04, which is pretty old now. Are there any relevant changes for 22.04 or 24.04 or is this stuff stable now?
评论 #40009218 未加载
评论 #40014974 未加载
bdd8f1df777babout 1 year ago
A side note: the page does not declare utf-8 encoding. I have manually change it to resolve some of garbled text.
评论 #40011317 未加载
评论 #40009656 未加载