Live data from Hacker News

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

polarsparc.com

21–24 of 24 posts

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

#21
post #17
post #15

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?

It may be both. You could possibly just use network namespaces. While I am too familiar with it to suggest effort required, looking at the Openstack project and how they provision tenant networks may help. It is just python with a three tier model with a message bus. But how they interface with libvirt may help if the namespace abstraction support for the 'ip' command is too clunky for you. It doesn't give you indepe…

Ok interesting I'll take a look. I was looking at libvirt, specifically how red hat was doing testing for its container ecosystem to see if there wasn't some juice to squeeze out of how they are managing it.

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

#22
post #3

See also: * The What, Why and How of Containers ( https://www.annwan.me/computers/what-why-how-containers/ ) * Containers from Scratch ( https://ericchiang.github.io/post/containers-from-scratch/ ) * Linux Containers From Scratch in C ( https://www.lucavall.in/blog/barco-linux-containers-from-scr... ) * Life of a Container ( https://indradhanush.github.io/blog/life-of-a-container/ )

There's also Gocker: https://github.com/shuveb/containers-the-hard-way
Post reply on HN