There’s something wrong with your docker installation, how was docker installed?
What’s the result of doing:
docker info
The last time I saw this error the user had installed docker both from get.docker and separately via apt.
Did you install it using snap? That isn’t supported.