linux:containers:lxc
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:containers:lxc [18/07/2025 16:51] – [Cloning a container] andrew | linux:containers:lxc [23/07/2025 14:38] (current) – andrew | ||
---|---|---|---|
Line 4: | Line 4: | ||
===== Installation ===== | ===== Installation ===== | ||
- | Standard install of Ubuntu | + | Standard install of Ubuntu |
==== Disk layout ==== | ==== Disk layout ==== | ||
Line 213: | Line 213: | ||
Creating system-wide unprivileged containers (that is, unprivileged containers created and started by root) requires only a few extra steps to organize subordinate user IDs (uid) and subordinate group IDs (gid). | Creating system-wide unprivileged containers (that is, unprivileged containers created and started by root) requires only a few extra steps to organize subordinate user IDs (uid) and subordinate group IDs (gid). | ||
- | Specifically, | + | Specifically, |
For example, if you have not done anything on your host related to subordinate uid and gid ranges, the following commands may be all you need. Before doing the following, take a look in /etc/subuid and /etc/subgid to see that the range 100000: | For example, if you have not done anything on your host related to subordinate uid and gid ranges, the following commands may be all you need. Before doing the following, take a look in /etc/subuid and /etc/subgid to see that the range 100000: | ||
- | echo " | + | |
- | echo " | + | echo " |
- | echo " | + | echo " |
- | echo " | + | echo " |
That's it! Any container you create as root from now on will be running unprivileged. | That's it! Any container you create as root from now on will be running unprivileged. |
linux/containers/lxc.1752857513.txt.gz · Last modified: by andrew