Skip to content
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

How to disable output clipping in docker build? #247

Open
maver1ck opened this issue Mar 29, 2022 · 3 comments
Open

How to disable output clipping in docker build? #247

maver1ck opened this issue Mar 29, 2022 · 3 comments

Comments

@maver1ck
Copy link

maver1ck commented Mar 29, 2022

When I'm building docker image I'm getting message:
#8 225.0 [output clipped, log limit 1MiB reached]

I know that I should set two env variables for docker:
BUILDKIT_STEP_LOG_MAX_SIZE=-1
BUILDKIT_STEP_LOG_MAX_SPEED=-1
How to set them in Colima ?

Reference: docker/buildx#484

@rayr007
Copy link

rayr007 commented May 31, 2022

I would guess you need to set these in the VM that Colima sets up to run containers in. I believe you can get in with colima ssh but I don't know if any changes you do there persist between start/stop. I ran into this issue too and am shocked at such a design decision by docker...

@abiosoft
Copy link
Owner

You can follow this approach and specify the buildkit environment variables instead #294 (comment).

Will look at fixing Docker daemon's loading of env vars in future releases so you'd only need to pass the environment variables via --env or the config and it should just work.

@rouge8
Copy link

rouge8 commented Apr 27, 2023

It looks like passing the env variable through the config works now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants