for-win icon indicating copy to clipboard operation
for-win copied to clipboard

v4.35.1 Docker Desktop for Windows Containers will not start

Open guyelight opened this issue 2 years ago • 0 comments

Description

I have found that Docker Desktop is now overwriting the windows-daemon.json with the daemon.json in C:\Users[user].docker directory. My daemon.json has a default-address-pools setting because the default subnets conflict with out internal network:

"default-address-pools": [ { "base": "10.100.0.0/16", "size": 24 } ],

When this is then inserted in the windows-daemon.json the Docker Engine will not start with a fatl error: fatal: unable to configure the Docker daemon with file C:\ProgramData\Docker\config\daemon.json: the following directives don't match any configuration option: default-address-pools

This complete breaks my windows container environment.

Reproduce

  1. add the following to the Linux configuration for Docker Engine: "default-address-pools": [ { "base": "10.100.0.0/16", "size": 24 } ],
  2. Apply & Restart
  3. Change to Windows Containers
  4. Docker Engine will not start.

Expected behavior

windows-daemon.json is not overwritten by daemon.json and the Windows Docker ENgine starts with no errors.

docker version

Client: Version: 27.3.1 API version: 1.47 Go version: go1.22.7 Git commit: ce12230 Built: Fri Sep 20 11:42:27 2024 OS/Arch: windows/amd64 Context: desktop-windows error during connect: Get "http://%2F%2F.%2Fpipe%2FdockerDesktopWindowsEngine/v1.47/version": open //./pipe/dockerDesktopWindowsEngine: The system cannot find the file specified.

docker info

Client: Version: 27.3.1 Context: desktop-windows Debug Mode: false Plugins: buildx: Docker Buildx (Docker Inc.) Version: v0.17.1-desktop.1 Path: C:\Users\glight.docker\cli-plugins\docker-buildx.exe compose: Docker Compose (Docker Inc.) Version: v2.29.7-desktop.1 Path: C:\Users\glight.docker\cli-plugins\docker-compose.exe debug: Get a shell into any image or container (Docker Inc.) Version: 0.0.37 Path: C:\Users\glight.docker\cli-plugins\docker-debug.exe desktop: Docker Desktop commands (Alpha) (Docker Inc.) Version: v0.0.15 Path: C:\Users\glight.docker\cli-plugins\docker-desktop.exe dev: Docker Dev Environments (Docker Inc.) Version: v0.1.2 Path: C:\Users\glight.docker\cli-plugins\docker-dev.exe extension: Manages Docker extensions (Docker Inc.) Version: v0.2.27 Path: C:\Users\glight.docker\cli-plugins\docker-extension.exe feedback: Provide feedback, right in your terminal! (Docker Inc.) Version: v1.0.5 Path: C:\Users\glight.docker\cli-plugins\docker-feedback.exe init: Creates Docker-related starter files for your project (Docker Inc.) Version: v1.3.0 Path: C:\Users\glight.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:\Users\glight.docker\cli-plugins\docker-sbom.exe scout: Docker Scout (Docker Inc.) Version: v1.14.0 Path: C:\Users\glight.docker\cli-plugins\docker-scout.exe

Server: ERROR: error during connect: Get "http://%2F%2F.%2Fpipe%2FdockerDesktopWindowsEngine/v1.47/info": open //./pipe/dockerDesktopWindowsEngine: The system cannot find the file specified. errors pretty printing info

Diagnostics ID

1BB39CB8-9D17-46C9-8EC7-48EA6C765315/20241107170945

Additional Info

Since windows-daemon.json is overwritten the "fixed-cidr": "10.200.0.0/16", will not be set wither. Also, there is still the bug in the Docker Desktop that doesn't allow this to be set in the Docker Engine Settings UI the "/16" makes it not an ip address according to the ui error.

guyelight avatar Nov 07 '24 17:11 guyelight