I used the following commands to install docker in rootless mode.
curl -sSL https://get.docker.com/rootless | sh
systemctl --user start docker.service
systemctl --user enable docker.service
sudo loginctl enable-linger blueray
sudo setcap cap_net_bind_service=+ep ~/bin/rootlesskit
Now when I ran docker info
, it says:
WARNING: Running in rootless-mode without cgroups. To enable cgroups in rootless-mode, you need to boot the system in cgroup v2 mode.
What should I do to fix this warning?