Cannot connect to docker daemon

This problem can happen when using the default Docker Desktop settings.

  1. Go to Settings > Advanced.
  2. Make sure this option is checked: “Allow the default Docker socket to be used (requires password)”.