Skip to content

Commit 7cf2132

Browse files
rgulewichcorhere
authored andcommitted
docker run: specify cgroup namespace mode with --cgroupns
Signed-off-by: Rob Gulewich <[email protected]>
1 parent 1cbcd5d commit 7cf2132

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

man/dockerd.8.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ dockerd - Enable daemon mode
2020
[**--containerd**[=*SOCKET-PATH*]]
2121
[**--data-root**[=*/var/lib/docker*]]
2222
[**-D**|**--debug**]
23+
[**--default-cgroupns-mode**[=*host*]]
2324
[**--default-gateway**[=*DEFAULT-GATEWAY*]]
2425
[**--default-gateway-v6**[=*DEFAULT-GATEWAY-V6*]]
2526
[**--default-address-pool**[=*DEFAULT-ADDRESS-POOL*]]
@@ -178,6 +179,10 @@ $ sudo dockerd --add-runtime runc=runc --add-runtime custom=/usr/local/bin/my-ru
178179
**-D**, **--debug**=*true*|*false*
179180
Enable debug mode. Default is false.
180181

182+
**--default-cgroupns-mode**="**host**|**private**"
183+
Set the default cgroup namespace mode for newly created containers. The argument
184+
can either be **host** or **private**. If unset, this defaults to `host`.
185+
181186
**--default-gateway**=""
182187
IPv4 address of the container default gateway; this address must be part of
183188
the bridge subnet (which is defined by \-b or \--bip)

0 commit comments

Comments
 (0)