This problem can happen when using the default Docker Desktop settings.
- Go to Settings > Advanced.
- Make sure this option is checked: “Allow the default Docker socket to be used (requires password)”.
This problem can happen when using the default Docker Desktop settings.