Rock 5B - Debian11- Docker is not working

I can install docker and have tried several ways. Docker runs normally on all of the ways. Docker ps is also possible. However, I cannot start a container. The error always appears: “docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error setting cgroup config for procHooks process: bpf_prog_query( BPF_CGROUP_DEVICE) failed: function not implemented: unknown.
ERRO[0004] error waiting for container:”. With docker ps -a the container appears but not with docker ps. However, everything works with Ubuntu.

First of all You need to switch to iptables-legacy as in:

update-alternatives --set iptables /usr/sbin/iptables-legacy
update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy

for cgroups check if that is available on system:

grep cgroup /proc/filesystems

thanks for your answer. Unfortunately, this hasn’t fixed the problem yet. the output of grep cgroup /proc/filesystems is:
nodev cgroup
nodev cgroup2

what system and kernel are You using?
edit: have You added cgroup option already?
Take a look at this topic: