Skip to content

docker buildx build never stops #15766

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

Closed
akosyakov opened this issue Jan 16, 2023 · 2 comments
Closed

docker buildx build never stops #15766

akosyakov opened this issue Jan 16, 2023 · 2 comments
Labels
feature: docker in workspaces team: workspace Issue belongs to the Workspace team type: bug Something isn't working

Comments

@akosyakov
Copy link
Member

akosyakov commented Jan 16, 2023

Bug description

docker buildx build hangs forever, also could be reproduced with docker export if an image is built with --squash.

Not sure whether it is a bug with docker itself, or some IO limiting, or how we run docker in workspaces?

Screenshot 2023-01-16 at 13 59 05

Steps to reproduce

  • Create a Dockerfile with FROM gitpod/workspace-full:latest
  • Run docker buildx build -o outdir .
  • You maybe need to try several times, but eventually it will stuck and never finish.

Workspace affected

No response

Expected behavior

does not hang

Example repository

No response

Anything else?

No response

@jeanp413
Copy link
Member

Looks like a buildx bug indeed, I let it run for half an hour and it didn't finish 😆

image

@kylos101
Copy link
Contributor

👋 hey there, @akosyakov @jeanp413 ,

I ran a test with buildctl and buildkitd (below), did not have any issues, but, do observe "it takes a while" and "uses a lot of free space".

From a gitpod workspace for buildkit:

pushd /workspace/buildkit/cmd/buildctl
go build .
popd

pushd /workspace/buildkit/cmd/buildkitd
go build .
popd

sudo /workspace/buildkit/cmd/buildkitd/buildkitd --debug --group gitpod --root=/workspace/buildkit &

mkdir ./test-me
echo "FROM gitpod/workspace-full:latest" > ./test-me/Dockerfile

pushd ./test-me
buildctl build  --frontend=dockerfile.v0  --local context=. --local dockerfile=.
popd

I am going to close this issue for now. Let us know if anything else is needed?

cc: @utam0k

@kylos101 kylos101 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 17, 2023
@github-project-automation github-project-automation bot moved this to Awaiting Deployment in 🌌 Workspace Team Jan 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: docker in workspaces team: workspace Issue belongs to the Workspace team type: bug Something isn't working
Projects
No open projects
Archived in project
Development

No branches or pull requests

3 participants