I have published a couple of videos that cover an overview of rootless containers through practical demonstration. If you are curious about terms like "rootless containers" or "running a container rootless as non-root," these videos will explain what they are and the benefits that these features provide.
The first video, Overview of Rootless Podman: Part 1โUnderstanding Root Inside and Outside a Container, I cover the four different options when running containers with podman:
- Running podman as root, with processes in the container running as root
- Running podman as root, with processes in the container running as non-root
- Running podman as an unprivileged user (rootless), with processes in the container running as root
- Running podman as an unprivileged user (rootless), with processes in the container running as non-root (also known as rootless as a non-root user)
Each of these options is explained, and a demonstration of each of them is also shown in the first video.
In the second video, Overview of Rootless Podman: Part 2โHow User Namespaces Work in Rootless Containers, I dive deep into how user namespaces work in rootless podman, and demo the following topics:
- Running a container with rootless podman
- View user namespaces with the lsns command
- Review the /etc/subuid file, which defines subordinate UID ranges
- Review the /proc/<pid>/uid_map file, which shows the UID map for a process
- Calculate the UID number that a process will use on the host
- Use the podman top command to view the mapping of users between the container and the host
- Use the podman unshare command to run a command within a container's user namespace
These videos should provide you a better understanding of how user namespaces work and the various options that are available when running containers with podman.
[ Getting started with containers? Check out this free course. Deploying containerized applications: A technical overview. ]
์ ์ ์๊ฐ
Brian Smith is a product manager at Red Hat focused on RHEL automation and management. He has been at Red Hat since 2018, previously working with public sector customers as a technical account manager (TAM).
์ ์ฌํ ๊ฒ์ ๊ฒฐ๊ณผ
Red Hat Enterprise Linux์ ์ด๋ฏธ์ง ๋ชจ๋๋ฅผ ์ง๊ธ ๋ฐ๋ก ์ฌ์ฉํด์ผ ํ๋ 4๊ฐ์ง ์ด์
๊ฐ๋ ฅํ ๋ณด์, ์ฆ์ ์ฌ์ฉ ๊ฐ๋ฅ, ์ถ๊ฐ ๋น์ฉ ์์ด ์ ๊ณต: ์ปจํ ์ด๋ ๋ณด์์ ์งํ
Container Roundup | Compiler
Kubernetes and the quest for a control plane | Technically Speaking
์ฑ๋๋ณ ๊ฒ์
์คํ ๋ฉ์ด์
๊ธฐ์ , ํ, ์ธํ๋ผ๋ฅผ ์ํ IT ์๋ํ ์ต์ ๋ํฅ
์ธ๊ณต์ง๋ฅ
๊ณ ๊ฐ์ด ์ด๋์๋ AI ์ํฌ๋ก๋๋ฅผ ์คํํ ์ ์๋๋ก ์ง์ํ๋ ํ๋ซํผ ์ ๋ฐ์ดํธ
์คํ ํ์ด๋ธ๋ฆฌ๋ ํด๋ผ์ฐ๋
ํ์ด๋ธ๋ฆฌ๋ ํด๋ผ์ฐ๋๋ก ๋์ฑ ์ ์ฐํ ๋ฏธ๋๋ฅผ ๊ตฌ์ถํ๋ ๋ฐฉ๋ฒ์ ์์๋ณด์ธ์
๋ณด์
ํ๊ฒฝ๊ณผ ๊ธฐ์ ์ ๋ฐ์ ๊ฑธ์ณ ๋ฆฌ์คํฌ๋ฅผ ๊ฐ์ํ๋ ๋ฐฉ๋ฒ์ ๋ํ ์ต์ ์ ๋ณด
์ฃ์ง ์ปดํจํ
์ฃ์ง์์์ ์ด์์ ๋จ์ํํ๋ ํ๋ซํผ ์ ๋ฐ์ดํธ
์ธํ๋ผ
์ธ๊ณ์ ์ผ๋ก ์ธ์ ๋ฐ์ ๊ธฐ์ ์ฉ Linux ํ๋ซํผ์ ๋ํ ์ต์ ์ ๋ณด
์ ํ๋ฆฌ์ผ์ด์
๋ณต์กํ ์ ํ๋ฆฌ์ผ์ด์ ์ ๋ํ ์๋ฃจ์ ๋ ๋ณด๊ธฐ
๊ฐ์ํ
์จํ๋ ๋ฏธ์ค์ ํด๋ผ์ฐ๋ ํ๊ฒฝ์์ ์ํฌ๋ก๋๋ฅผ ์ ์ฐํ๊ฒ ์ด์ํ๊ธฐ ์ํ ์ํฐํ๋ผ์ด์ฆ ๊ฐ์ํ์ ๋ฏธ๋