docker / for-mac

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

Docker Build - Internal Server Error - Application Issue Report #7144

Open siva-rithish opened 8 months ago

siva-rithish commented 8 months ago

Description

Encountered an "Internal Server Error" with the following message:

Application Error We've reported this to our error tracker. Internal Server Error

Reproduce

It occurs since past two updates.

Expected behavior

No response

docker version

Client:
 Cloud integration: v1.0.35+desktop.10
 Version:           25.0.1
 API version:       1.44
 Go version:        go1.21.6
 Git commit:        29cf629
 Built:             Tue Jan 23 23:06:12 2024
 OS/Arch:           darwin/arm64
 Context:           desktop-linux

Server: Docker Desktop 4.27.0 (135262)
 Engine:
  Version:          25.0.1
  API version:      1.44 (minimum version 1.24)
  Go version:       go1.21.6
  Git commit:       71fa3ab
  Built:            Tue Jan 23 23:09:35 2024
  OS/Arch:          linux/arm64
  Experimental:     false
 containerd:
  Version:          1.6.27
  GitCommit:        a1496014c916f9e62104b33d1bb5bd03b0858e59
 runc:
  Version:          1.1.11
  GitCommit:        v1.1.11-0-g4bccb38
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker info

Client:
 Version:    25.0.1
 Context:    desktop-linux
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.12.1-desktop.4
    Path:     /Users/rithishkarg/.docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
Server:
 Containers: 4
  Running: 1
  Paused: 0
  Stopped: 3
 Images: 2
 Server Version: 25.0.1
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: cgroupfs
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: a1496014c916f9e62104b33d1bb5bd03b0858e59
 runc version: v1.1.11-0-g4bccb38
 init version: de40ad0
 Security Options:
  seccomp
   Profile: unconfined
  cgroupns
 Kernel Version: 6.6.12-linuxkit
 Operating System: Docker Desktop
 OSType: linux
 Architecture: aarch64
 CPUs: 8
 Total Memory: 7.658GiB
 Name: docker-desktop
 ID: ae36d043-d1cf-4990-ac88-e5892cb8a347
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 HTTP Proxy: http.docker.internal:3128
 HTTPS Proxy: http.docker.internal:3128
 No Proxy: hubproxy.docker.internal
 Experimental: false
 Insecure Registries:
  hubproxy.docker.internal:5555
  127.0.0.0/8
 Live Restore Enabled: false

Diagnostics ID

92DC3F5A-9682-4A47-A192-39480420EFFA/20240126164032

Additional Info

No response

rouaks commented 8 months ago

+1

joelkim commented 8 months ago

+1

piyushmishra1416 commented 8 months ago

Can anyone provide a solution to this issue?

pclavelloux commented 8 months ago

Same issue :(

PR4NJ41 commented 8 months ago

same issue

piyushmishra1416 commented 8 months ago

If you are a Mac user, then changing the owner will work for some of the repos. Try this command: sudo chown -R $(id -u):$(id -g) $HOME/.docker

Dviros commented 8 months ago

Same here

bsousaa commented 8 months ago

can you test with the latest 4.27.2? https://docs.docker.com/desktop/release-notes/#4272

grahamburgsma commented 8 months ago

@bsousaa still happening for me with 4.27.2. I'm on an M1 MacBook Pro running macOS 14.2.

Dviros commented 8 months ago

@bsousaa can confirm as solved on my end; Running on 14.3.1, MBP M3. Thanks a lot.

pclavelloux commented 7 months ago

can you test with the latest 4.27.2? https://docs.docker.com/desktop/release-notes/#4272

I still get the problem MBP M1 14.3 (23D56)

ajounie commented 7 months ago

image I have the same issue reinstall docker desktop upgrade to 4.28.0
worked on my MAC Pro M1

ajounie commented 7 months ago

can you test with the latest 4.27.2? https://docs.docker.com/desktop/release-notes/#4272

I still get the problem MBP M1 14.3 (23D56)

test with 4.28.0

aamna2401 commented 7 months ago

image I have the same issue reinstall docker desktop upgrade to 4.28.0 worked on my MAC Pro M1

This is not working on Windows 11.

aamna2401 commented 7 months ago

did someone face this issue

unable to resolve docker endpoint: Invalid proto, expected tcp: http://127.0.0.1:5000

m-root commented 4 months ago

I did the following and it worked for me:

  1. Uninstall Docker Desktop:

    • Drag the Docker app from the Applications folder to the Trash.
    • Open Terminal and run:
      rm -rf ~/Library/Group\ Containers/group.com.docker
      rm -rf ~/.docker
    • Empty the Trash.
  2. Download the Latest Docker Desktop:

  3. Reinstall Docker Desktop:

    • Open the downloaded .dmg file and drag the Docker icon to the Applications folder.
    • Launch Docker Desktop from the Applications folder and follow the setup instructions.
SiegeSailor commented 3 months ago

I did the following and it worked for me:

  1. Uninstall Docker Desktop:

    • Drag the Docker app from the Applications folder to the Trash.
    • Open Terminal and run:
      rm -rf ~/Library/Group\ Containers/group.com.docker
      rm -rf ~/.docker
    • Empty the Trash.
  2. Download the Latest Docker Desktop:

  3. Reinstall Docker Desktop:

    • Open the downloaded .dmg file and drag the Docker icon to the Applications folder.
    • Launch Docker Desktop from the Applications folder and follow the setup instructions.

This works! However, I was trying to fix the other issue - stop using buildx, which seems can be fixed by reinstalling Docker Desktop, and this didn't work. It still complains like:

(base) user@MAC Project % sudo docker build --tag "$CONTAINER_NAME:$TARGET" \
--target "stage-$TARGET" $BUILD_ARGS "./"
ERROR: "docker buildx build" requires exactly 1 argument.
See 'docker buildx build --help'.

Usage:  docker buildx build [OPTIONS] PATH | URL | -

Start a build
Shahzaibahmad97 commented 2 months ago

I did the following and it worked for me:

  1. Uninstall Docker Desktop:

    • Drag the Docker app from the Applications folder to the Trash.
    • Open Terminal and run:
      rm -rf ~/Library/Group\ Containers/group.com.docker
      rm -rf ~/.docker
    • Empty the Trash.
  2. Download the Latest Docker Desktop:

  3. Reinstall Docker Desktop:

    • Open the downloaded .dmg file and drag the Docker icon to the Applications folder.
    • Launch Docker Desktop from the Applications folder and follow the setup instructions.

@m-root I did the following and I was able to get past the "Internal Server Error" but now I am stuck at buildx error:

"open /Users/username/.docker/buildx/current: permission denied"

does anyone else know the solution to this?