Fedora 31 is first major distro with cgroup v2 (unified hierarchy). Follow below steps to make Docker working on it:
Add Docker CE repository:
Install Docker CE:
When you try to run Docker container on freshly installed Fedora 31, you will get following error message:
Revert the systemd configuration to use cgroup v1, edit default Grub config file:
Append line starting with GRUB_CMDLINE_LINUX with systemd.unified_cgroup_hierarchy=0 parameter.
After that rebuild Grub config and then reboot.