Open rolandjitsu opened 4 years ago
I experience this same error when running on a self-hosted Gitlab Runner, Docker Executor, on an Azure VM. I do NOT experience this issue when running on Gitlab's Shared Runners, probably because I'm getting spread across different runners. When running on my self hosted runner, I can have several concurrent jobs fire that will execute the qemu container and depending on the timing I will get this error across 1 or more of them.
I also get the same error on a self-hosted GitLab Runner. I am dealing with it by retrying the docker run command until success.
QEMU_COMMAND="docker run --rm --privileged multiarch/qemu-user-static --reset -p yes"
until ${QEMU_COMMAND};do sleep 1;done
Is this a bug report, feature (enhancement) request or question? (leave only one on its own line)
/kind bug
Description:
I'm running this image on a Gitlab CI runner using Kubernetes with Docker in Docker (
docker:19.03.12
,docker:19:03.12-dind
) and I started getting some errors:Steps to reproduce the issue:
I install some apk packages (because the
docker:19.03.12
image is a alpine based image):I install docker buildx
I authenticate the docker CLI with Docker Hub
I install GCP SDK:
I run
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
Describe the results you received: These are some of the errors I get:
But sometimes I get just the
sh: write error: File exists
error or no error at all. Though, it seems like the binaries I compile are still working, regardless of the error.Describe the results you expected: I should be getting these errors?
Environment:
Output of
docker version
,podman version
orsingularity version
Note that this is called from the docker container running docker, not from the host as the host is a kubernetes pod that get's destroyed once the CI job is done.
Additional information optionally:
This setup is running on a GCP Kubernetes Engine cluster that's using the
1.15.12-gke.2
track. And it seems like it only occurs when multiple jobs run concurrently on the same node.