1

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?

2
  • What distribution are you running? Some recent distributions (e.g, Fedora >= 34 (maybe earlier) use cgroups v2 by default). If you need to explicitly enable it, a search for "<your dsitribution> enable cgroups v2" will probably find what you need. rootlesscontaine.rs/getting-started/common/cgroup2 is probably sufficient.
    – larsks
    Oct 5 at 18:16
  • I am using Linux Mint 20.2
    – blueray
    Oct 6 at 0:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.