This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
технология_namespaces [2017/11/28 12:26] val создано |
технология_namespaces [2020/06/22 16:03] val |
||
---|---|---|---|
Line 2: | Line 2: | ||
* [[https://habrahabr.ru/company/selectel/blog/279281/|Механизмы контейнеризации: namespaces]] | * [[https://habrahabr.ru/company/selectel/blog/279281/|Механизмы контейнеризации: namespaces]] | ||
+ | * [[https://blogs.rdoproject.org/7761/hands-on-linux-sandbox-with-namespaces-and-cgroups|Hands on Linux sandbox with namespaces and cgroups]] | ||
+ | |||
+ | <code> | ||
+ | # ls /proc | ||
+ | |||
+ | # ps ax | ||
+ | |||
+ | # man unshare | ||
+ | |||
+ | # unshare --pid --mount-proc=/proc --fork su -l user1 | ||
+ | |||
+ | $ ls /proc | ||
+ | |||
+ | $ ps ax | ||
+ | </code> |