docker / for-mac

Bug reports for Docker Desktop for Mac
https://www.docker.com/products/docker#/mac
2.44k stars 119 forks source link

Docker desktop failed to open after installing #7405

Open KollaBalasai opened 3 months ago

KollaBalasai commented 3 months ago

Description

running engine: waiting for the Docker API: engine linux/virtualization-framework failed to run: running VM: com.docker.virtualization: process terminated unexpectedly

Reproduce

install docker desktop

Expected behavior

docker desktop should install successfully and dashboard page should be loaded

docker version

latest version

docker info

Client:
 Version:    27.1.1
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.16.1-desktop.1
    Path:     /Users/kolla.balasai/.docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.29.1-desktop.1
    Path:     /Users/kolla.balasai/.docker/cli-plugins/docker-compose
  debug: Get a shell into any image or container (Docker Inc.)
    Version:  0.0.34
    Path:     /Users/kolla.balasai/.docker/cli-plugins/docker-debug
  desktop: Docker Desktop commands (Alpha) (Docker Inc.)
    Version:  v0.0.14
    Path:     /Users/kolla.balasai/.docker/cli-plugins/docker-desktop
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.2
    Path:     /Users/kolla.balasai/.docker/cli-plugins/docker-dev
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.25
    Path:     /Users/kolla.balasai/.docker/cli-plugins/docker-extension
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  v1.0.5
    Path:     /Users/kolla.balasai/.docker/cli-plugins/docker-feedback
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v1.3.0
    Path:     /Users/kolla.balasai/.docker/cli-plugins/docker-init
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     /Users/kolla.balasai/.docker/cli-plugins/docker-sbom
  scout: Docker Scout (Docker Inc.)
    Version:  v1.11.0
    Path:     /Users/kolla.balasai/.docker/cli-plugins/docker-scout

Diagnostics ID

3B9F3376-338B-45C3-A723-E2F5AFDDDBF9/20240902175004

Additional Info

No response

ctalledo commented 2 months ago

Hi @KollaBalasai,

Thanks for filing the report and uploading the diagnostics bundle.

Looking at it, I see Docker Desktop fails to start the VM on your Mac host due to this error:

2024-09-02T17:49:40.467513000Z][com.docker.backend.engines.unix] [2024-09-02T17:49:40.467380000Z][com.docker.virtualization] VM configuration is invalid: Rosetta requires arm64

Seems Docker Desktop is configured to use Rosetta (which allows running Intel apps on Apple-chip based Macs), but that setting does not apply to your machine because you have an Intel-based Mac.

I wonder why Docker Desktop is configured that way though, it should not be the case normally. Does the DD GUI show Rosetta enabled under "Settings"? If so try to disable it. If not, then check if config option useVirtualizationFrameworkRosetta is set to true in the ~/Library/Group Containers/group.com.docker/settings.json file.

Thanks!