Installation fails on my Debian server

Like I said above, install with get.docker.com | sh, not whatever comes with the OS.

You’ll be sorry if you use apt.

This would likely obviate your need to switch from Debian.