Open rfay opened 1 year ago
I got this message for just some "docker build", not every "docker build". This message is shown in startup operation of docker build command. Images are build successfully.
Note: I have no "ddev" executable/script in my disk.
I am encountering the same issue where the updated changes are not reflected in the built image, and the system continues to run using the older image.
Facing the same issue on latest version (4.26.0), solution is to revert back to an older version (e.g.: https://docs.docker.com/desktop/release-notes/#4251) for the moment being.
I've hit the same issue when I updated to latest wsl version (wsl --update
). Then I've updated to latest Docker Desktop version 4.26.0 (130397). I've been previously on 4.25.1. Unfortunately I didn't capture what was my previous wsl version. My current wsl version is:
$ wsl --version
WSL version: 2.0.9.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19045.3693
.wslconfig
[wsl2]
# Limits VM memory to use no more than 4 GB, this can be set as whole numbers using GB or MB
memory=8GB
# Sets the VM to use two virtual processors
processors=4
Note: Error doesn't pop up every time.
I build docker images which inherit/depend from each other. Example: Image C from Image B from Image A.
This chain is executed via bash script - build img A -- build --> img B -- build -> img C
.
Images are build successfully with the mentioned error before img B and img C builds. Example with pseudo-code:
$ <build image A>
pass
$ <build image B>
error printed out
pass
$ <build image C>
error printed out
pass
Images are build successfully with no error printed out.
I've collected the following logs:
[2023-12-08T19:32:14.522178800Z][com.docker.backend.exe.apiproxy][W] Error forwarding raw stream from dockerd: The pipe is being closed.
[2023-12-08T19:32:14.523770300Z][com.docker.backend.exe.apiproxy][W] Error forwarding raw stream to dockerd: file has already been closed
...
[2023-12-08T19:35:15.350906500Z][com.docker.backend.exe.wslengine][I] [2023-12-08T19:35:15.351389058Z][init][I] accepted debug connection [2023-12-08T19:35:15.352193900Z][com.docker.backend.exe.wslengine][I] [2023-12-08T19:35:15.352437995Z][init.socketforward][I] error copying: io: read/write on closed pipe
...
[2023-12-08T19:51:46.505897200Z][com.docker.backend.exe.ipc][I] (85a52dd5) 5fb8e32c-BackendAPI S<-C Docker-Desktop/4.26.0 (Windows; x64)
[2023-12-08T19:51:46.505897200Z][com.docker.backend.exe.ipc][I] (b8007ea0) 5fb8e32c-BackendAPI S<-C Docker-Desktop/4.26.0 (Windows; x64)
[2023-12-08T19:51:46.505897200Z][com.docker.backend.exe.ipc][I] (85a52dd5) 5fb8e32c-BackendAPI S<-C Docker-Desktop/4.26.0 (Windows; x64) GET /docker
[2023-12-08T19:51:46.505897200Z][com.docker.backend.exe.ipc][I] (b8007ea0) 5fb8e32c-BackendAPI S<-C Docker-Desktop/4.26.0 (Windows; x64) GET /kubernetes
[2023-12-08T19:51:46.505897200Z][com.docker.backend.exe.ipc][I] (85a52dd5) 5fb8e32c-BackendAPI S->C Docker-Desktop/4.26.0 (Windows; x64) GET /docker (0s): {"docker":"running","dockerAPI":"running","idle":"r...g","isPaused":false,"mode":"linux","pauseError":"","pauseText":"Docker Desktop is running","state":"running"}
[2023-12-08T19:51:46.506426500Z][com.docker.backend.exe.ipc][I] (85a52dd5) 5fb8e32c-BackendAPI S->C Docker-Desktop/4.26.0 (Windows; x64) (529.3µs): OK
[2023-12-08T19:51:46.506426500Z][com.docker.backend.exe.ipc][I] (b8007ea0) 5fb8e32c-BackendAPI S->C Docker-Desktop/4.26.0 (Windows; x64) GET /kubernetes (529.3µs): {"enabled":false,"state":"stopped"}
[2023-12-08T19:51:46.506426500Z][com.docker.backend.exe.ipc][I] (b8007ea0) 5fb8e32c-BackendAPI S->C Docker-Desktop/4.26.0 (Windows; x64) (529.3µs): OK
[2023-12-08T19:51:46.514988300Z][com.docker.backend.exe.apiproxy][I] proxy >> GET /events?filters=%7B%22event%22%3A%5B%22load%22%2C%22pull%22%2C%22tag%22%2C%22import%22%5D%7D
[2023-12-08T19:51:46.524476600Z][com.docker.backend.exe.apiproxy][I] proxy >> HEAD /_ping
[2023-12-08T19:51:46.525531100Z][com.docker.backend.exe.apiproxy][I] proxy << HEAD /_ping (1.0545ms)
[2023-12-08T19:51:46.526064900Z][com.docker.backend.exe.apiproxy][I] proxy >> POST /grpc
[2023-12-08T19:51:46.527645800Z][com.docker.backend.exe.apiproxy][I] Upgrading to raw stream
[2023-12-08T19:51:46.527645800Z][com.docker.backend.exe.apiproxy][W] Error forwarding raw stream from dockerd: The pipe is being closed.
[2023-12-08T19:51:46.528177900Z][com.docker.backend.exe.apiproxy][I] proxy << POST /grpc (2.113ms)
[2023-12-08T19:51:46.529235700Z][com.docker.backend.exe.ipc][I] (df220424) 5fb8e32c-BackendAPI S<-C Docker-Desktop/4.26.0 (Windows; x64)
[2023-12-08T19:51:46.529333400Z][com.docker.backend.exe.ipc][I] (df220424) 5fb8e32c-BackendAPI S<-C Docker-Desktop/4.26.0 (Windows; x64) GET /app/settings
[2023-12-08T19:51:46.529386700Z][com.docker.backend.exe.daemonconfigloader][I] get daemon config: {"builder":{"gc":{"defaultKeepStorage":"20GB","enabled":true}},"experimental":false}
[2023-12-08T19:51:46.529905000Z][com.docker.backend.exe.ipc][I] (df220424) 5fb8e32c-BackendAPI S->C Docker-Desktop/4.26.0 (Windows; x64) GET /app/settings (571.6µs): {"cli":{"enableComposeV1Alias":true,"enableHints":true,"useGrpcfuse":true},"desktop":{"allowBetaFeatures":{"locked":false,"value":true},"allowExperimentalFeatures":{"locked":false,"value":false},"analyticsEnabled":{"locked":false,"value":true},"autoDownloadUpdates":{"locked":false,"value":false},"autoPauseTimedActivitySeconds":30,"autoPauseTimeoutSeconds":300,"autoStart":false,"backupData":false,"blockDockerLoad":{"locked":false,"value":false},"canUseEnhancedContainerIsolation":true,"canUseVirtualizationFramework":false,"canUseVirtualizationFrameworkRosetta":false,"canUseVirtualizationFrameworkVirtioFS":false,"containerTerminal":"integrated","disableHardwareAcceleration":false,"disableUpdate":{"locked":false,"value":false},"displaySwitchWinLinContainers":false,"displayedOnboarding":true,"enableSegmentDebug":false,"enableWasmShims":false,"enhancedContainerIsolation":{"locked":false,"value":false},"exportInsecureDaemon":{"locked":false,"value":false},"mustDisplayVirtualizationFrameworkSwitch":false,"noWindowsContainers":false,"openUIOnStartupDisabled":false,"runWinServiceInWslMode":false,"sbomIndexing":{"locked":false,"value":false},"showAnnouncementNotifications":true,"showGeneralNotifications":true,"showInstallScreen":true,"showSurveyNotifications":true,"themeSource":"system","updateAvailableTime":1687256454480,"updateInstallTime":0,"useBackgroundIndexing":{"locked":false,"value":false},"useContainerdSnapshotter":false,"useCredentialHelper":true,"useNightlyBuildUpdates":{"locked":false,"value":false},"useResourceSaver":true,"useVirtualizationFramework":false,"useVirtualizationFrameworkRosetta":false,"useVirtualizationFrameworkVirtioFS":false,"useVpnkit":true,"wslEnableGrpcfuse":false,"wslEngineEnabled":{"locked":false,"value":true},"wslInstallMode":"installLatestWsl","wslPreconditionMessage":"","wslUpdateRequired":false},"extensions":{"enabled":{"locked":false,"value":true},"onlyMarketplaceExtensions":{"locked":false,"value":false},"privateMarketplace":{"locked":false,"value":false},"privateMarketplaceAdminContactURL":{"locked":false,"value":""},"showSystemContainers":false},"install":{"dockerBinInstallPath":"system","enableDefaultDockerSocket":true,"enableIntegrityCheck":true,"enablePrivilegedPorts":false,"updateHostsFile":false,"wslInstallMode":""},"vm":{"daemon":{"locked":false,"value":"{\"builder\":{\"gc\":{\"defaultKeepStorage\":\"20GB\",\"enabled\":true}},\"experimental\":false}"},"fileSharing":[],"kubernetes":{"enabled":{"locked":false,"value":false},"installed":false,"showSystemContainers":{"locked":false,"value":false}},"network":{"kernelForUDP":true,"socksProxyPort":0,"vpnkitCIDR":"map[string]interface {}"},"proxy":{"exclude":{"locked":false,"value":""},"http":"map[string]interface {}","https":"map[string]interface {}","mode":{"locked":false,"value":"system"},"windowsDockerdPort":{"locked":false,"value":-1}},"resources":{"cpus":{"max":20,"min":1,"value":20},"dataFolder":"C:\ProgramData\DockerDesktop\vm-data","diskSizeMiB":{"value":65536},"memoryMiB":{"max":32439,"min":1024,"value":2048},"swapMiB":{"max":4096,"min":0,"value":1024},"wslDataFolder":"\u003cHOME\u003e\AppData\Local\Docker\wsl"}},"vpnkit":{"MTU":0,"allowedBindAddresses":"","maxConnections":0,"maxPortIdleTime":"float64","transparentProxy":true},"wslIntegration":{"distros":[],"enableIntegrationWithDefaultWslDistro":true}}
[2023-12-08T19:51:46.529905000Z][com.docker.backend.exe.ipc][I] (df220424) 5fb8e32c-BackendAPI S->C Docker-Desktop/4.26.0 (Windows; x64) (669.3µs): OK
2. com.docker.build.exe.stderr.log
-------------------------------------------------------------------------------->8 2023-12-08 16:07:29 [I] starting desktop-build/v0.7.0 go/1.20.6 windows/amd64 2023-12-08 16:07:29 [I] current docker context: default 2023-12-08 16:07:29 [W] failed to dial docker daemon on default context: unable to upgrade to h2c, received 500 2023-12-08 16:07:29 [I] builder manager started 2023-12-08 16:07:29 [I] build manager started 2023-12-08 16:07:29 [I] starting server (socket=\.\pipe\dockerDesktopBuildServer) 2023-12-08 16:07:29 [E] docker events error: request returned Internal Server Error for API route and version http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/events?filters=%7B%22event%22%3A%7B%22die%22%3Atrue%2C%22start%22%3Atrue%7D%2C%22type%22%3A%7B%22container%22%3Atrue%7D%7D, check if the server supports the requested API version 2023-12-08 19:28:13 [W] skip listening node desktop-linux/desktop-linux: docker builder "default" is already listening to the same workers: [4258182a-dedb-40d3-a871-45dd76aae32a] 2023-12-08 19:28:13 [I] starting listener for default/default 2023-12-08 19:28:13 [W] skip listening node desktop-linux/desktop-linux: docker builder "default" is already listening to the same workers: [4258182a-dedb-40d3-a871-45dd76aae32a] 2023-12-08 19:30:13 [W] skip listening node desktop-linux/desktop-linux: docker builder "default" is already listening to the same workers: [4258182a-dedb-40d3-a871-45dd76aae32a] 2023-12-08 19:42:35 [W] skip listening node desktop-linux/desktop-linux: docker builder "default" is already listening to the same workers: [4258182a-dedb-40d3-a871-45dd76aae32a]
3. com.docker.diagnose.exe.log
[2023-12-08T19:36:01.628142600Z][com.docker.diagnose.exe.ipc][W] (70c37832) 45a36b1b-MutagenGatherer C<-S 5fb8e32c-BackendAPI GET /mutagen/file-shares (1.4203ms): status code not OK but 500: {"message":"daemon not running"} {"message":"daemon not running"} {"message":"daemon not running"} [2023-12-08T19:36:01.628705500Z][com.docker.diagnose.exe.ipc][I] httpErr: status code not OK but 500: {"message":"daemon not running"} {"message":"daemon not running"} {"message":"daemon not running"}
Hey, we hit this one as well, what's the status here? Do we know if this is error or just a warning, does docker build / push finishes as expected with this message or result should be discarded and the action repeated?
I have the same issue with the last Docker and a pre-released WSL:
Docker Desktop 4.26.1 (131620), Client/Engine: 24.0.7, API 1.43
Compose v2.23.3-desktop.2
WSL: 2.0.15.0 (pre-release)
This also probably fills random files with zeros after some position. In my case there two files were erased after the 48 MB offset (300_0000h), but the file sizes have not changed.
@bjg2 I think you need to repeat the builds with such error.
Maybe related https://github.com/docker/compose/issues/11165
same issue.And my dockerfile's change dose not work. Restart did not work too. It's confused....
Faced same again with 4.27.1 (136059)
Hi there,
I have the same error, the moment I upgraded Docker Desktop for Windows to 4.27.1 I got the error.
This is the error: 2024/02/06 15:49:33 http2: server: error reading preface from client //./pipe/docker_engine: file has already been closed [+] Building 0.0s (0/0) docker:default 2024/02/06 15:49:33 http2: server: error reading preface from client //./pipe/docker_engine: file has already been closed
It comes from this Dockerfile:
FROM artifactory.xxxxxx.is/docker-local/xxxx/curity/idsvr:8.7.0
RUN rm -rf /opt/idsvr/etc/init/*
COPY opt/ /opt/
COPY ui-builder/build/curity/messages/overrides/ /opt/idsvr/usr/share/messages/overrides/ COPY ui-builder/build/curity/templates/overrides/ /opt/idsvr/usr/share/templates/overrides/ COPY ui-builder/build/curity/webroot/ /opt/idsvr/usr/share/webroot/
USER root
RUN apt-get update && \ apt-get install -y net-tools
RUN chmod -R 755 /opt/idsvr/usr/bin/post-commit-scripts/
USER idsvr:idsvr
If I comment OUT these lines, the Dockerfile will work:
COPY ui-builder/build/curity/messages/overrides/ /opt/idsvr/usr/share/messages/overrides/ COPY ui-builder/build/curity/templates/overrides/ /opt/idsvr/usr/share/templates/overrides/ COPY ui-builder/build/curity/webroot/ /opt/idsvr/usr/share/webroot/
I've downgraded to version 4.26.1 and now everything works again.
I even tried to run "docker builder prune -af" to clear all cache ( it cleared out 40GB of cache on my machine ) when I was running 4.27 and restarted it multiple times to try to fix it but nothing worked. Version 4.27 is broken. Please fix it
For me downgrading to v.26.1 (from 27.1) helped.
For me downgrading to v.26.1 (from 27.1) helped.
as you can see above, that was also my "fix". To downgrade to 26.1
But 27.1 needs to be fixed properly
Is anybody from Docker monitoring this issue? Can you confirm that this is being worked on?
can you test with the latest 4.27.2? https://docs.docker.com/desktop/release-notes/#4272
For me it still appears in version 4.27.2
I have following windows version
OS Name Microsoft Windows 10 Enterprise Version 10.0.19045 Build 19045
For me it still appears in version 4.27.2
Likewise for me too
can you test with the latest 4.27.2? https://docs.docker.com/desktop/release-notes/#4272
Nice!
It works with 4.27.2 which you just released, just confirmed it ;-) Thanks!
For me it still appears in version 4.27.2
Likewise for me too
Still happening in latest version
For me it still appears in version 4.27.2
Likewise for me too
Still happening in latest version
This is a long shot, but could it be a Windows version specific?
For me it's happening on Windows 10 but not Windows 11?
can you test with the latest 4.27.2? https://docs.docker.com/desktop/release-notes/#4272
Nice!
It works with 4.27.2 which you just released, just confirmed it ;-) Thanks!
In my case (Windows 10 21H2 19044.3930) didn't helped. But downgrading to 4.26.1 didn't helped as well.
I had the issue on 4.27.1 and confirmed 4.27.2 fixed the issue
#26 exporting layers
#26 exporting layers 0.6s done
2024/02/12 12:27:42 http2: server: error reading preface from client //./pipe/docker_engine: file has already been closed
#26 writing image sha256:2b8e2e41ba94944e6cd4c8b1d4aaa3d3bcdabaa6605781bc07bcf7ccdc1fa6f2 done
Is still happening in 4.27.2, a system reboot did not help. Layers are not getting persisted during builds.
OS Name Microsoft Windows 10 Enterprise Version 10.0.19045 Build 19045
i faced it today on windows 11 with v4.27.2.
I also faced it today on version v4.27.1, updating to v4.27.2 fixed it
4.27.1 is broken, 4.27.2 is not, but it still logs the error mentioned in the first post.
I have also found that it works correctly through WSL
its still happening in win 10 with v4.27.2
Came here looking for a solution after updating docker to 4.27.2 on Win 11
its still happening in win 10 with v4.27.2
Happened for me aswell on Windows 11 before a popup asking me if we should allow Docker to use my network. After i approved that it no longer shows the message
Getting the same error as well in docker compose
docker version
Client:
Cloud integration: v1.0.35+desktop.10
Version: 25.0.3
API version: 1.44
Go version: go1.21.6
Git commit: 4debf41
Built: Tue Feb 6 21:13:02 2024
OS/Arch: windows/amd64
Context: default
Server: Docker Desktop 4.27.2 (137060)
Engine:
Version: 25.0.3
API version: 1.44 (minimum version 1.24)
Go version: go1.21.6
Git commit: f417435
Built: Tue Feb 6 21:14:25 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.28
GitCommit: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e94
docker-init:
Version: 0.19.0
GitCommit: de40ad0
docker info
Client:
Version: 25.0.3
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.12.1-desktop.4
Path: C:\Program Files\Docker\cli-plugins\docker-buildx.exe
compose: Docker Compose (Docker Inc.)
Version: v2.24.5-desktop.1
Path: C:\Program Files\Docker\cli-plugins\docker-compose.exe
debug: Get a shell into any image or container. (Docker Inc.)
Version: 0.0.24
Path: C:\Program Files\Docker\cli-plugins\docker-debug.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: v1.0.4
Path: C:\Program Files\Docker\cli-plugins\docker-feedback.exe
init: Creates Docker-related starter files for your project (Docker Inc.)
Version: v1.0.0
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
scout: Docker Scout (Docker Inc.)
Version: v1.4.1
Path: C:\Program Files\Docker\cli-plugins\docker-scout.exe
Server:
Containers: 3
Running: 2
Paused: 0
Stopped: 1
Images: 30
Server Version: 25.0.3
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: 1
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: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
runc version: v1.1.12-0-g51d5e94
init version: de40ad0
Security Options:
seccomp
Profile: unconfined
Kernel Version: 5.15.133.1-microsoft-standard-WSL2
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
CPUs: 12
Total Memory: 15.54GiB
Name: docker-desktop
ID: 2a6c6c60-bc5e-4c66-8b3c-5ee3ff8b30e1
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
WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support
WARNING: daemon is not using the default seccomp profile
wsl --version
WSL version: 2.0.9.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19045.4046
Same problem met on Win11 with v4.27.2.
Is this issue getting fixed? I'm getting this issue very often, it affects my productivity...
Same problem on Win11 with v4.28.0
Same here on windows 11 with 4.28.0
same here windows 10 with 4.28.0
I went back to 4.26.0 and the error persists. I think I'm stuck since I installed the upgrades.
Not sure if this helps, I initially didn't get this error if I ran docker build
w/o running aws cer get-login-password
. Of course the build would fail because I didn't authenticate with aws where the parent image resides. After I ran aws login successfully then I got this https2 error and also I got a 403 failed to solve the image URL.
for me once I updated to ddev 1.22.7 everything works.
I rolled back to 4.20.1 and the issue no longer occurs. I am not sure which specific release results in the issue appearing.
Hitting this issue with docker compose build
on Docker Desktop 4.28.0
> docker version
Client:
Cloud integration: v1.0.35+desktop.11
Version: 25.0.3
API version: 1.44
Go version: go1.21.6
Git commit: 4debf41
Built: Tue Feb 6 21:13:02 2024
OS/Arch: windows/amd64
Context: default
Server: Docker Desktop 4.28.0 (139021)
Engine:
Version: 25.0.3
API version: 1.44 (minimum version 1.24)
Go version: go1.21.6
Git commit: f417435
Built: Tue Feb 6 21:14:25 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.28
GitCommit: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e94
docker-init:
Version: 0.19.0
GitCommit: de40ad0
> docker compose version
Docker Compose version v2.24.6-desktop.1
> wsl --version
WSL version: 2.1.5.0
Kernel version: 5.15.146.1-2
WSLg version: 1.0.60
MSRDC version: 1.2.5105
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19045.4046
4.28.0 fixed it partially. I had some containers that would build prior to 4.28.0 and some that wouldn't. With 4.27.2 I couldn't even re-build some containers that previously worked if I'd roll back, and 4.28.0 fixed THAT issue, but containers that hadn't worked in a few months even when rolling back still are not working with 4.28.0 for me.
I am experiencing this issue in 4.28.0 on Windows 10 as well. Just before (or after?) updating docker, I moved my docker-desktop-data image file onto a separate hard drive in my PC using the docker desktop app's settings to change the storage location.
Client:
Cloud integration: v1.0.35+desktop.11
Version: 25.0.3
API version: 1.44
Go version: go1.21.6
Git commit: 4debf41
Built: Tue Feb 6 21:13:02 2024
OS/Arch: windows/amd64
Context: default
Server: Docker Desktop 4.28.0 (139021)
Engine:
Version: 25.0.3
API version: 1.44 (minimum version 1.24)
Go version: go1.21.6
Git commit: f417435
Built: Tue Feb 6 21:14:25 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.28
GitCommit: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
runc:
Version: 1.1.12
GitCommit: v1.1.12-0-g51d5e94
docker-init:
Version: 0.19.0
GitCommit: de40ad0
I encountered the same issue, but it was resolved when I used the --no-cache option with the docker build command.
I suspect the problem is related to caching; despite making changes to my code, the hash value of the layer didn’t change after the COPY command. This caused Docker to use an outdated cache, leading to an incorrect image build.
I see the same error. The clearing of cache was NOT helpful for me. ddev: v1.23.0-alpha1 docker: version 25.0.3, docker-desktop 4.28.0 windows 11
Only coincidence? I have often to reset the docker after starting to use vite.-server.
Also cause problems on Docker Desktop 4.25.1. I am building my container and getting these messages
F:\Users\Sergey\Projects\PyProjects\TEst> docker-compose -f compose.yaml -p test up --force-recreate -d --build
2024/04/26 00:05:08 http2: server: error reading preface from client //./pipe/docker_engine: file has already been closed
[+] Building 0.5s (6/6) FINISHED docker:default
=> [app2 internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 407B
... (build success)
F:\Users\Sergey\Projects\PyProjects\TEst> wsl --version
Версия WSL: 2.1.5.0
Версия ядра: 5.15.146.1-2
Версия WSLg: 1.0.60
Версия MSRDC: 1.2.5105
Версия Direct3D: 1.611.1-81528511
Версия DXCore: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Версия Windows: 10.0.19045.4291
F:\Users\Sergey\Projects\PyProjects\TEst> docker --version
Docker version 24.0.6, build ed223bc
F:\Users\Sergey\Projects\PyProjects\TEst> docker version
Client:
Cloud integration: v1.0.35+desktop.5
Version: 24.0.6
API version: 1.43
Go version: go1.20.7
Git commit: ed223bc
Built: Mon Sep 4 12:32:48 2023
OS/Arch: windows/amd64
Context: default
Server: Docker Desktop 4.25.1 (128006)
Engine:
Version: 24.0.6
API version: 1.43 (minimum version 1.12)
Go version: go1.20.7
Git commit: 1a79695
Built: Mon Sep 4 12:32:16 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.22
GitCommit: 8165feabfdfe38c65b599c4993d227328c231fca
runc:
Version: 1.1.8
GitCommit: v1.1.8-0-g82f18fe
docker-init:
Version: 0.19.0
GitCommit: de40ad0
F:\Users\Sergey\Projects\PyProjects\TEst>
i have the same issue with Docker Desktop 4.29.0 on Windows 10 22H2 when running docker build
docker info
:
Client:
Version: 26.0.0
Context: default
Debug Mode: false
Plugins:
buildx: Docker Buildx (Docker Inc.)
Version: v0.13.1-desktop.1
Path: C:\Program Files\Docker\cli-plugins\docker-buildx.exe
compose: Docker Compose (Docker Inc.)
Version: v2.26.1-desktop.1
Path: C:\Program Files\Docker\cli-plugins\docker-compose.exe
debug: Get a shell into any image or container. (Docker Inc.)
Version: 0.0.27
Path: C:\Program Files\Docker\cli-plugins\docker-debug.exe
dev: Docker Dev Environments (Docker Inc.)
Version: v0.1.2
Path: C:\Program Files\Docker\cli-plugins\docker-dev.exe
extension: Manages Docker extensions (Docker Inc.)
Version: v0.2.23
Path: C:\Program Files\Docker\cli-plugins\docker-extension.exe
feedback: Provide feedback, right in your terminal! (Docker Inc.)
Version: v1.0.4
Path: C:\Program Files\Docker\cli-plugins\docker-feedback.exe
init: Creates Docker-related starter files for your project (Docker Inc.)
Version: v1.1.0
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
scout: Docker Scout (Docker Inc.)
Version: v1.6.3
Path: C:\Program Files\Docker\cli-plugins\docker-scout.exe
Server:
Containers: 2
Running: 2
Paused: 0
Stopped: 0
Images: 4
Server Version: 26.0.0
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: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
Swarm: inactive
Runtimes: runc io.containerd.runc.v2
Default Runtime: runc
Init Binary: docker-init
containerd version: ae07eda36dd25f8a1b98dfbf587313b99c0190bb
runc version: v1.1.12-0-g51d5e94
init version: de40ad0
Security Options:
seccomp
Profile: unconfined
Kernel Version: 5.15.146.1-microsoft-standard-WSL2
Operating System: Docker Desktop
OSType: linux
Architecture: x86_64
CPUs: 12
Total Memory: 31.27GiB
Name: docker-desktop
ID: e0e4e260-8e89-4b64-a2d4-9d4b816739e7
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
Labels:
com.docker.desktop.address=npipe://\\.\pipe\docker_cli
Experimental: false
Insecure Registries:
hubproxy.docker.internal:5555
127.0.0.0/8
Live Restore Enabled: false
WARNING: No blkio throttle.read_bps_device support
WARNING: No blkio throttle.write_bps_device support
WARNING: No blkio throttle.read_iops_device support
WARNING: No blkio throttle.write_iops_device support
WARNING: daemon is not using the default seccomp profile
wsl --version
:
WSL version: 2.1.5.0
Kernel version: 5.15.146.1-2
WSLg version: 1.0.60
MSRDC version: 1.2.5105
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19045.4291
Okay, I give up, I spent way too many hours and days on this issue. I tried many different versions of docker desktop. I thought that the problem might be in some newer features either in docker compose or build, so I tried everything I could thought of to fix it, but still same result: I am not only getting http2: server: error reading preface from client //./pipe/docker_engine: file has already been closed
error, when this error happens I get a lot slower build of my project, context is around 6-7 GB (with everything that is not needed already in dockerignore) and it can be easily seen how much slower transferring context is happening in newer versions vs old one.
I ended up rolling back to 4.21.1. Exactly the same everything, the only difference is docker version, in old version this error does not occur, and the difference is huge:
Building 1030.7s (161/176)
vs
Building 465.3s (181/181) FINISHED
I will stay on old version and not upgrade until this is fixed. And it's a joke that with this kind of problem they started asking for paid subscription in latest versions.
Same problem - Win 11, docker v4.29.0
In my case the problem was with database volume folder from previous compose build in project directory. I deleted it, then removed mysql image and when I run after that docker compose up
no more error. Some people saying they had issues with node_modules
folder. So they deleted it and all cool after that.
Still occurs:
Windows 11 [10.0.22631 N/A Build 22631] Docker for Windows [4.30.0]
Description
I'm seeing this regularly on Docker Desktop v4.21.1 (Windows), running docker client on Windows.
It doesn't seem to do any harm, ddev startup continues.
Reproduce
ddev start
Expected behavior
No complaints; didn't used to see this.
docker version
docker info
Diagnostics ID
9E14D454-B129-4D1B-B987-681D1D330F62/20230720000416
Additional Info
No response