The docker error
Command:
Service 'web' failed to build: OCI runtime create failed: container_linux.go:346: starting container process caused "process_linux.go:297: applying cgroup configuration for process caused \"open /sys/fs/cgroup/docker/cpuset.cpus.effective: no such file or directory\"": unknown
If docker-compose up throws the above error
The fix
Command:
sudo vi /etc/default/grub
Edit /etc/default/grub
Add
Command:
systemd.unified_cgroup_hierarchy=0
In /etc/default/grub at the end of GRUB_CMDLINE_LINUX
Rebuild Grub
Command:
sudo grub2-mkconfigI
Rebuild the grub
Restart
Command:
shutdown -r now
Restart the computer
Try Docker again
This worked for fixing my problem. Try docker again and see if it works.