-
Notifications
You must be signed in to change notification settings - Fork 579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cgroup v2 error - "sed: write error" #308
Comments
Ah, looks like this code was introduced in moby/moby#41065 (this script comes from https://github.com/moby/moby/blob/6110ba3d7c8b83794a8d2e915410c11e7460e4b5/hack/dind). Given that this script is used as an entrypoint, it will normally start before |
This has to be done with PID 1. How do you get non-1 PID? |
I can reproduce by just using $ docker pull docker:dind
dind: Pulling from library/docker
Digest: sha256:e0cef8e03463c7dde0613bb68a3fa211f4e3a12823b38f03f92bf330abaef3a9
Status: Image is up to date for docker:dind
docker.io/library/docker:dind
$ docker run -it --rm --init --privileged -e DOCKER_TLS_CERTDIR= docker:dind
sed: write error |
PR: moby/moby#42331 |
Should be fixed via docker-library/official-images#10087! Thank you @AkihiroSuda 😄 (30d7b9b) |
Upgrade the base images to docker:24.0.2-dind which contain the fix for the cgroup v2 problems. The images built locally from this commit are pushed to ghcr.io as ghcr.io/hyperledger/cactus-fabric-all-in-one:2023-06-16-d436ef26e-issue2464-dind-v24 and ghcr.io/hyperledger/cactus-fabric2-all-in-one:2023-06-16-d436ef26e-issue2464-dind-v24 Additional context: The root cause analysis can be found here [1][2] which states that the solution is to upgrade the dind image to a version of at least 20.10.16 [1] docker-library/docker#308 [2] testcontainers/dind-drone-plugin#18 Fixes hyperledger#2464 Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
Upgrade the base images to docker:24.0.2-dind which contain the fix for the cgroup v2 problems. The images built locally from this commit are pushed to ghcr.io as ghcr.io/hyperledger/cactus-fabric-all-in-one:2023-06-16-d436ef26e-issue2464-dind-v24 and ghcr.io/hyperledger/cactus-fabric2-all-in-one:2023-06-16-d436ef26e-issue2464-dind-v24 Additional context: The root cause analysis can be found here [1][2] which states that the solution is to upgrade the dind image to a version of at least 20.10.16 [1] docker-library/docker#308 [2] testcontainers/dind-drone-plugin#18 Fixes hyperledger#2464 =================================== P.S.: I'm also sneaking in a hot-fix for the CI failures that are slowing down everyone else's work with false-negative checks wasting time and resources: The root package.json codegen, precodegen and postcodegen scripts are now safe from race conditions (or at least that's the theory for now). Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
Upgrade the base images to docker:24.0.2-dind which contain the fix for the cgroup v2 problems. The images built locally from this commit are pushed to ghcr.io as ghcr.io/hyperledger/cactus-fabric-all-in-one:2023-06-16-d436ef26e-issue2464-dind-v24 and ghcr.io/hyperledger/cactus-fabric2-all-in-one:2023-06-16-d436ef26e-issue2464-dind-v24 Additional context: The root cause analysis can be found here [1][2] which states that the solution is to upgrade the dind image to a version of at least 20.10.16 [1] docker-library/docker#308 [2] testcontainers/dind-drone-plugin#18 Fixes #2464 =================================== P.S.: I'm also sneaking in a hot-fix for the CI failures that are slowing down everyone else's work with false-negative checks wasting time and resources: The root package.json codegen, precodegen and postcodegen scripts are now safe from race conditions (or at least that's the theory for now). Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
Upgrade the base images to docker:24.0.2-dind which contain the fix for the cgroup v2 problems. The images built locally from this commit are pushed to ghcr.io as ghcr.io/hyperledger/cactus-fabric-all-in-one:2023-06-16-d436ef26e-issue2464-dind-v24 and ghcr.io/hyperledger/cactus-fabric2-all-in-one:2023-06-16-d436ef26e-issue2464-dind-v24 Additional context: The root cause analysis can be found here [1][2] which states that the solution is to upgrade the dind image to a version of at least 20.10.16 [1] docker-library/docker#308 [2] testcontainers/dind-drone-plugin#18 Fixes hyperledger#2464 =================================== P.S.: I'm also sneaking in a hot-fix for the CI failures that are slowing down everyone else's work with false-negative checks wasting time and resources: The root package.json codegen, precodegen and postcodegen scripts are now safe from race conditions (or at least that's the theory for now). Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
Upgrade the base images to docker:24.0.2-dind which contain the fix for the cgroup v2 problems. The images built locally from this commit are pushed to ghcr.io as ghcr.io/hyperledger/cactus-fabric-all-in-one:2023-06-16-d436ef26e-issue2464-dind-v24 and ghcr.io/hyperledger/cactus-fabric2-all-in-one:2023-06-16-d436ef26e-issue2464-dind-v24 Additional context: The root cause analysis can be found here [1][2] which states that the solution is to upgrade the dind image to a version of at least 20.10.16 [1] docker-library/docker#308 [2] testcontainers/dind-drone-plugin#18 Fixes hyperledger#2464 =================================== P.S.: I'm also sneaking in a hot-fix for the CI failures that are slowing down everyone else's work with false-negative checks wasting time and resources: The root package.json codegen, precodegen and postcodegen scripts are now safe from race conditions (or at least that's the theory for now). Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
Upgrade the base images to docker:24.0.2-dind which contain the fix for the cgroup v2 problems. The images built locally from this commit are pushed to ghcr.io as ghcr.io/hyperledger/cactus-fabric-all-in-one:2023-06-16-d436ef26e-issue2464-dind-v24 and ghcr.io/hyperledger/cactus-fabric2-all-in-one:2023-06-16-d436ef26e-issue2464-dind-v24 Additional context: The root cause analysis can be found here [1][2] which states that the solution is to upgrade the dind image to a version of at least 20.10.16 [1] docker-library/docker#308 [2] testcontainers/dind-drone-plugin#18 Fixes hyperledger#2464 =================================== P.S.: I'm also sneaking in a hot-fix for the CI failures that are slowing down everyone else's work with false-negative checks wasting time and resources: The root package.json codegen, precodegen and postcodegen scripts are now safe from race conditions (or at least that's the theory for now). Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
I get a similar error with the following script. It takes some time for the issue to appear.
|
Yeah, I see this pretty regularly over in https://github.com/tianon/dockerfiles/actions?query=is%3Afailure (a non-trivial number of those failures are this exact error -- as far as I can tell, some kind of race condition between the shell and the kernel 😭).
|
The 'dind' script assumes that the dockerd process will start with pid 1.
This is often not the case when building from the dind image and this causes an error "sed: write error" on systems that use cgroup v2.
Could I suggest checking the process ID of dockerd rather than assuming it is 1 in the dind script? Something like:
The text was updated successfully, but these errors were encountered: