Not a solution, but a workaround.
How did you installed Docker? Can you share a link to the followed instructions?
The following commands can give us some idea and recognize incorrectly installed Docker:
docker info
docker version
Review the output before sharing and remove confidential data if any appears (public IP for example)
dpkg -l | grep docker
snap list docker
When you share the outputs, always format your posts according to the following guide: How to format your forum posts