docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.85k stars 286 forks source link

When trying to use docker commands / desktop Internal Server Error for API route and version #13834

Open 4dZombie opened 9 months ago

4dZombie commented 9 months ago

Description

I had Docker desktop installed 1-2 Weeks ago on this my pc with a postgres container running without issues. Today when I started docker desktop I got logged out each time I restarted and only had appbar and docker engine stopped in the middle of the screen.

I deinstalled and reinstalled docker multiple times with a logout or a restart of the pc. When i used the cmd to try and see if I can use the Container from there this was the output:

docker ps -a request returned Internal Server Error for API route and version http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/json?all=1, check if the server supports the requested API version

docker pull postgres Using default tag: latest request returned Internal Server Error for API route and version http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/create?fromImage=postgres&tag=latest, check if the server supports the requested API version

When I looked into the settings I selected builder, there were an error default docker: Builder error request returned Internal Server Error for API route and version http://%2F%2F.%2Fpipe%2Fdocker_engine/_ping, check if the server supports the requested API version

desktop-linux docker: Builder error request returned Internal Server Error for API route and version http://%2F%2F.%2Fpipe%2FdockerDesktopLinuxEngine/_ping, check if the server supports the requested API version

Idk if this has anything to do with it but docker version cli command and desktop do not have the same version

docker version request returned Internal Server Error for API route and version http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/version, check if the server supports the requested API version Client: Cloud integration: v1.0.35+desktop.5 Version: 24.0.7 API version: 1.43 Go version: go1.20.10 Git commit: afdd53b Built: Thu Oct 26 09:08:44 2023 OS/Arch: windows/amd64 Context: default

Desktop version Software updates You're up to date

Docker Desktop 4.26.0 (130397) is currently the newest version available.

Reproduce

Start docker desktop need to start a second time to actually start only get screen Docker Engine stopped go to settings or anything on top bar since thats the only thing that works

CLI Docker commands like version, help .. work Docker commands like ps -a, pull, run, start do all not work api error

Expected behavior

No response

docker version

Client:
 Cloud integration: v1.0.35+desktop.5
 Version:           24.0.7
 API version:       1.43
 Go version:        go1.20.10
 Git commit:        afdd53b
 Built:             Thu Oct 26 09:08:44 2023
 OS/Arch:           windows/amd64
 Context:           default

docker info

Client:
 Version:    24.0.7
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.12.0-desktop.2
    Path:     C:\Program Files\Docker\cli-plugins\docker-buildx.exe
  compose: Docker Compose (Docker Inc.)
    Version:  v2.23.3-desktop.2
    Path:     C:\Program Files\Docker\cli-plugins\docker-compose.exe
  dev: Docker Dev Environments (Docker Inc.)
    Version:  v0.1.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-dev.exe
  extension: Manages Docker extensions (Docker Inc.)
    Version:  v0.2.21
    Path:     C:\Program Files\Docker\cli-plugins\docker-extension.exe
  feedback: Provide feedback, right in your terminal! (Docker Inc.)
    Version:  0.1
    Path:     C:\Program Files\Docker\cli-plugins\docker-feedback.exe
  init: Creates Docker-related starter files for your project (Docker Inc.)
    Version:  v0.1.0-beta.10
    Path:     C:\Program Files\Docker\cli-plugins\docker-init.exe
  sbom: View the packaged-based Software Bill Of Materials (SBOM) for an image (Anchore Inc.)
    Version:  0.6.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-sbom.exe
  scan: Docker Scan (Docker Inc.)
    Version:  v0.26.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-scan.exe
  scout: Docker Scout (Docker Inc.)
    Version:  v1.2.0
    Path:     C:\Program Files\Docker\cli-plugins\docker-scout.exe

Server:
ERROR: request returned Internal Server Error for API route and version http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/info, check if the server supports the requested API version
errors pretty printing info

Diagnostics ID

3207B28D-1585-4D9C-AF4B-66856D7DCD1A/20231208131615

Additional Info

No response

jcasse commented 8 months ago

Same problem:

❯docker version
request returned Internal Server Error for API route and version http://%2Fhome%2Fjcasse%2F.docker%2Fdesktop%2Fdocker.sock/v1.24/version, check if the server supports the requested API version
Client: Docker Engine - Community
 Cloud integration: v1.0.35+desktop.5
 Version:           24.0.7
 API version:       1.43
 Go version:        go1.20.10
 Git commit:        afdd53b
 Built:             Thu Oct 26 09:07:41 2023
 OS/Arch:           linux/amd64
 Context:           desktop-linux
❯docker image ls
request returned Internal Server Error for API route and version http://%2Fhome%2Fjcasse%2F.docker%2Fdesktop%2Fdocker.sock/v1.24/images/json, check if the server supports the requested API version

Clicking on the Download update button on Docker Desktop takes me to the release notes web page and does not download the update.

GloriaNeo commented 2 months ago

I have the same issue. Docker worked fine for me just yesterday, but I am receiving this error as well when i try to docker build or docker push.

request returned Internal Server Error for API route and version http://%2F%2F.%2Fpipe%2FdockerDesktopLinuxEngine/v1.45/containers/json, check if the server supports the requested API version