User Tools

Site Tools


технология_namespaces

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
технология_namespaces [2017/12/04 10:01]
val
технология_namespaces [2024/04/26 10:45] (current)
val
Line 3: Line 3:
   * [[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]]   * [[https://​blogs.rdoproject.org/​7761/​hands-on-linux-sandbox-with-namespaces-and-cgroups|Hands on Linux sandbox with namespaces and cgroups]]
 +
 +<​code>​
 +# lsns
 +
 +# ls /proc
 +# ps ax
 +
 +# man unshare
 +
 +# unshare --pid --mount-proc=/​proc --fork bash
 +  или
 +# unshare --pid --mount-proc=/​proc --fork su -l user1
 +
 +$ ls /proc
 +$ ps ax
 +
 +<Ctrl D>
 +
 +# unshare --net --user --fork bash
 +
 +$ id
 +
 +$ ps aux
 +
 +$ ip l
 +</​code>​
технология_namespaces.1512370885.txt.gz · Last modified: 2017/12/04 10:01 by val