I received a similar error as shown in the below image:
As, I was running Docker Engine using Colima, I was able to solve it by restarting colime. Command -> colima restart
colima restart