You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing an application in Go that test code in docker container. I've created image ready to test code, so I simply copy files on the container, start it, wait for it to finish, and get the logs.
Most of the time there's no issue.
However, sometimes, the CopyToContainer makes the docker daemon crash shutting down the containers running, like my database and giving me this error error during connect: Put "http://%2Fvar%2Frun%2Fdocker.sock/v1.47/containers/b1a3efe79b70816055ecbce4001a53a07772c3b7568472509b902830a094792e/archive?noOverwriteDirNonDir=true&path=%2F": EOF
Of course I can restart them but it's not great because it slow down everything and invalidate every container running at this moment.
The problem occurs sometimes, but not always without any difference visible. The problem occurs even with no concurrency in the program, so no race condition possible.
I'm on NixOS with Docker version 27.5.1, build v27.5.1.
Is it bug from the docker daemon, or the API, or something else ?
I removed error management, comments and logs from the snippet to keep it short and easily understandable.
Run this code a lot, and at some point, you'll get error during connect: Put "http://%2Fvar%2Frun%2Fdocker.sock/v1.47/containers/b1a3efe79b70816055ecbce4001a53a07772c3b7568472509b902830a094792e/archive?noOverwriteDirNonDir=true&path=%2F": EOF with every container crashing
Expected behavior
It should not crash
docker version
Client:
Version: 28.1.1
API version: 1.49
Go version: go1.24.2
Git commit: v28.1.1
Built: Thu Jan 1 00:00:00 1970
OS/Arch: linux/amd64
Context: default
Server:
Engine:
Version: 28.1.1
API version: 1.49 (minimum version 1.24)
Go version: go1.24.2
Git commit: v28.1.1
Built: Tue Jan 1 00:00:00 1980
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: v2.0.4
GitCommit: refs/tags/v2.0.4
runc:
Version: 1.2.6
GitCommit:
docker-init:
Version: 0.19.0
GitCommit:
I see the daemon was built with go1.24, which has a bug that can cause segfaults (official docker packages are still built with go1.23); a fix for that has been merged, but not yet release (it will be in the upcoming go1.24.3 release) related;
Uh oh!
There was an error while loading. Please reload this page.
Description
Hello,
I'm writing an application in Go that test code in docker container. I've created image ready to test code, so I simply copy files on the container, start it, wait for it to finish, and get the logs.
Most of the time there's no issue.
However, sometimes, the CopyToContainer makes the docker daemon crash shutting down the containers running, like my database and giving me this error
error during connect: Put "http://%2Fvar%2Frun%2Fdocker.sock/v1.47/containers/b1a3efe79b70816055ecbce4001a53a07772c3b7568472509b902830a094792e/archive?noOverwriteDirNonDir=true&path=%2F": EOF
Of course I can restart them but it's not great because it slow down everything and invalidate every container running at this moment.
The problem occurs sometimes, but not always without any difference visible. The problem occurs even with no concurrency in the program, so no race condition possible.
I'm on NixOS with Docker version 27.5.1, build v27.5.1.
Is it bug from the docker daemon, or the API, or something else ?
Reproduce
The logic is the following
I removed error management, comments and logs from the snippet to keep it short and easily understandable.
Run this code a lot, and at some point, you'll get
error during connect: Put "http://%2Fvar%2Frun%2Fdocker.sock/v1.47/containers/b1a3efe79b70816055ecbce4001a53a07772c3b7568472509b902830a094792e/archive?noOverwriteDirNonDir=true&path=%2F": EOF
with every container crashingExpected behavior
It should not crash
docker version
Client: Version: 28.1.1 API version: 1.49 Go version: go1.24.2 Git commit: v28.1.1 Built: Thu Jan 1 00:00:00 1970 OS/Arch: linux/amd64 Context: default Server: Engine: Version: 28.1.1 API version: 1.49 (minimum version 1.24) Go version: go1.24.2 Git commit: v28.1.1 Built: Tue Jan 1 00:00:00 1980 OS/Arch: linux/amd64 Experimental: false containerd: Version: v2.0.4 GitCommit: refs/tags/v2.0.4 runc: Version: 1.2.6 GitCommit: docker-init: Version: 0.19.0 GitCommit:
docker info
Additional Info
You can find my code here https://github.com/noahfraiture/nexzap/
The text was updated successfully, but these errors were encountered: