Welcome to Containers 101: A sysadmin’s guide to containers

What you need to know to understand how containers work.
What you need to know to understand how containers work.
Opensource.com

What you need to know to understand how containers work.

The term "containers" is heavily overused. Also, depending on the context, it can mean different things to different people.

Traditional Linux containers are really just ordinary processes on a Linux system. These groups of processes are isolated from other groups of processes using resource constraints (control groups [cgroups]), Linux security constraints (Unix permissions, capabilities, SELinux, AppArmor, seccomp, etc.), and namespaces (PID, network, mount, etc.).

If you boot a modern Linux system and took a look at any process with cat /proc/PID/cgroup, you see that the process is in a cgroup. If you look at /proc/PID/status, you see capabilities. If you look at /proc/self/attr/current, you see SELinux labels. If you look at /proc/PID/ns, you see the list of namespaces the process is in. So, if you define a container as a process with resource constraints, Linux security constraints, and namespaces, by definition every process on a Linux system is in a container. This is why we often say Linux is containers, containers are Linux. Container runtimes are tools that modify these resource constraints, security, and namespaces and launch the container.

Continue reading

2-minute read


WHAT TO READ THIS WEEK

Did a friend forward you this email? Subscribe here to receive our weekly highlights and more.

Opensource.com aspires to publish all content under a Creative Commons license but may not be able to do so in all cases. You are responsible for ensuring that you have the necessary permission to reuse any work on this site. Red Hat and the Red Hat logo are trademarks of Red Hat, Inc., registered in the United States and other countries. Linux is a registered trademark of Linus Torvalds.

contact us | unsubscribe | about Opensource.com | redhat.com


unsubscribe from this 4-week email series

© 2022 Opensource.com

100 E Davie Street
Raleigh, NC 27601 USA

Older messages

New Git cheat sheet: Happy anniversary, Git!

Thursday, April 7, 2022

Download our new DevSecOps eBook Download our updated Git cheat sheet Opensource.com We've updated our popular Git cheat sheet in honor of the version control system's 17th anniversary! This 2-

Make a cup of coffee with Git, Virtual Kubernetes clusters: A new model for multitenancy, and more

Tuesday, April 5, 2022

Scheduling tasks with the Linux cron command Scheduling tasks with the Linux cron command Opensource.com THE LATEST Make a cup of coffee with Git I created my own Git command to brew my morning coffee.

Subscribe to our 4-week Containers 101 email series

Thursday, March 31, 2022

Download our new Perl cheat sheet Subscribe now: Containers 101 4-week learning series Opensource.com Containers 101 4-week email series Containers can seem pretty overwhelming to even an experienced

My favorite Linux top command options, how our community uses Zulip for its open source chat tool, and more

Tuesday, March 29, 2022

Listen to your favorite music on Linux with Juk Listen to your favorite music on Linux with Juk Opensource.com THE LATEST My favorite Linux top command options A quick overview is often all I need to

New eBook: A guide to implementing DevSecOps

Thursday, March 24, 2022

Download our new DevSecOps eBook Download our new DevSecOps eBook Opensource.com DevSecOps incorporates security in every stage of the cycle while preserving the best qualities of DevOps. In this

You Might Also Like

Daily Coding Problem: Problem #1617 [Easy]

Saturday, November 23, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Microsoft. You are given an string representing the initial conditions of some dominoes.

Ranked | The Tallest and Shortest Countries, by Average Height 📏

Saturday, November 23, 2024

These two maps compare the world's tallest countries, and the world's shortest countries, by average height. View Online | Subscribe | Download Our App TIME IS RUNNING OUT There's just 3

⚙️ Your own Personal AI Agent, for Everything

Saturday, November 23, 2024

November 23, 2024 | Read Online Subscribe | Advertise Good Morning. Welcome to this special edition of The Deep View, brought to you in collaboration with Convergence. Imagine if you had a digital

Educational Byte: Are Privacy Coins Like Monero and Zcash Legal?

Saturday, November 23, 2024

Top Tech Content sent at Noon! How the world collects web data Read this email in your browser How are you, @newsletterest1? 🪐 What's happening in tech today, November 23, 2024? The HackerNoon

🐍 New Python tutorials on Real Python

Saturday, November 23, 2024

Hey there, There's always something going on over at Real Python as far as Python tutorials go. Here's what you may have missed this past week: Black Friday Giveaway @ Real Python This Black

Re: Hackers may have stolen everyone's SSN!

Saturday, November 23, 2024

I wanted to make sure you saw Incogni's Black Friday deal, which is exclusively available for iPhone Life readers. Use coupon code IPHONELIFE to save 58%. Here's why we recommend Incogni for

North Korean Hackers Steal $10M with AI-Driven Scams and Malware on LinkedIn

Saturday, November 23, 2024

THN Daily Updates Newsletter cover Generative AI For Dummies ($18.00 Value) FREE for a Limited Time Generate a personal assistant with generative AI Download Now Sponsored LATEST NEWS Nov 23, 2024

📧 Building Async APIs in ASP.NET Core - The Right Way

Saturday, November 23, 2024

​ Building Async APIs in ASP .NET Core - The Right Way Read on: m​y website / Read time: 5 minutes The .NET Weekly is brought to you by: Even the smartest AI in the world won't save you from a

WebAIM November 2024 Newsletter

Friday, November 22, 2024

WebAIM November 2024 Newsletter Read this newsletter online at https://webaim.org/newsletter/2024/november Features Using Severity Ratings to Prioritize Web Accessibility Remediation When it comes to

➡️ Why Your Phone Doesn't Want You to Sideload Apps — Setting the Default Gateway in Linux

Friday, November 22, 2024

Also: Hey Apple, It's Time to Upgrade the Macs Storage, and More! How-To Geek Logo November 22, 2024 Did You Know Fantasy author JRR Tolkien is credited with inventing the main concept of orcs and