Body: <p>I used the following commands to install docker in rootless mode.</p>
  <pre><code>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
  </code></pre>
  <p>Now when I ran <code>docker info</code>, it says:</p>
  <pre><code>WARNING: Running in rootless-mode without cgroups. To enable cgroups in rootless-mode, you need to boot the system in cgroup v2 mode.
  </code></pre>
  <p>What should I do to fix this warning?</p>
  
Comments: CC BY-SA 4.0
Comments: 2021-10-05T18:16:30.977Z
Comments: 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. https://rootlesscontaine.rs/getting-started/common/cgroup2/ is probably sufficient.
Comments: larsks
Comments: CC BY-SA 4.0
Comments: 2021-10-06T00:03:53.283Z
Comments: I am using Linux Mint 20.2
Comments: Ahmad Ismail
Tags: <docker>
Title: How to boot the system in cgroup v2 mode?
UserDisplayName: Ahmad Ismail
ThreadText: # How to boot the system in cgroup v2 mode?
  
  (Asked by: username_0 on 2021-09-24)
  
  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?
  
  **Tags:** docker
  
  > **Comments:**
  > **username_1**: 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. https://rootlesscontaine.rs/getting-started/common/cgroup2/ is probably sufficient.  
  > **username_0**: I am using Linux Mint 20.2  
  
  ---
  
  ## 0 answers
  
  