summaryrefslogtreecommitdiff
path: root/docs/source/markdown/options/cgroupns.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/source/markdown/options/cgroupns.md')
-rw-r--r--docs/source/markdown/options/cgroupns.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/source/markdown/options/cgroupns.md b/docs/source/markdown/options/cgroupns.md
new file mode 100644
index 000000000..6117b3fe1
--- /dev/null
+++ b/docs/source/markdown/options/cgroupns.md
@@ -0,0 +1,10 @@
+#### **--cgroupns**=*mode*
+
+Set the cgroup namespace mode for the container.
+
+- **host**: use the host's cgroup namespace inside the container.
+- **container:**_id_: join the namespace of the specified container.
+- **private**: create a new cgroup namespace.
+- **ns:**_path_: join the namespace at the specified path.
+
+If the host uses cgroups v1, the default is set to **host**. On cgroups v2, the default is **private**.