How did I fix «Error response from daemon: cgroups: cannot find cgroup mount destination: unknown» for Docker after switching Debian 10 from SysVinit to Systemd?

askubuntu.com/questions/1171460

mkdir /sys/fs/cgroup/systemd
mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd

askubuntu.com/a/1369767
github.com/docker/for-linux/issues/219#issuecomment-375160449

The best solution seems to be to upgrade Docker:

How did I upgrade Docker Client from 19 to 24 on Debian 10?