Docker Community Forums

Share and learn in the Docker community.

Changing cgroup version

Hello all,
I am using docker version

Server: Docker Engine - Community
Engine:
Version: 20.10.5

When i run docker info, i get the following:

Cgroup Driver: cgroupfs
Cgroup Version: 1

and when i run grep cgroup /proc/filesystems
i get the following:

nodev cgroup
nodev cgroup2

What should be added to
/etc/docker/daemon.json
line:
native.cgroupdriver=
To use cgroup2 instead of cgroup v1?

Thanks.