Skip to content

Commit 562a6d2

Browse files
AkihiroSudacorhere
authored andcommitted
docs: update for cgroup v2 and rootless
Signed-off-by: Akihiro Suda <[email protected]>
1 parent 7cf2132 commit 562a6d2

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

man/dockerd.8.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,8 @@ $ sudo dockerd --add-runtime runc=runc --add-runtime custom=/usr/local/bin/my-ru
181181

182182
**--default-cgroupns-mode**="**host**|**private**"
183183
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`.
184+
can either be **host** or **private**. If unset, this defaults to `host` on cgroup v1,
185+
`private` on cgroup v2.
185186

186187
**--default-gateway**=""
187188
IPv4 address of the container default gateway; this address must be part of
@@ -833,7 +834,8 @@ option is available.
833834
The `native.cgroupdriver` option specifies the management of the container's
834835
cgroups. You can only specify `cgroupfs` or `systemd`. If you specify
835836
`systemd` and it is not available, the system errors out. If you omit the
836-
`native.cgroupdriver` option,` cgroupfs` is used.
837+
`native.cgroupdriver` option,` cgroupfs` is used on cgroup v1 hosts, `systemd`
838+
is used on cgroup v2 hosts with systemd available.
837839

838840
This example sets the `cgroupdriver` to `systemd`:
839841

0 commit comments

Comments
 (0)