colima icon indicating copy to clipboard operation
colima copied to clipboard

How to disable output clipping in docker build?

Open maver1ck opened this issue 3 years ago • 3 comments

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: https://github.com/docker/buildx/issues/484

maver1ck avatar Mar 29 '22 10:03 maver1ck

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...

rayr007 avatar May 31 '22 06:05 rayr007

You can follow this approach and specify the buildkit environment variables instead https://github.com/abiosoft/colima/issues/294#issuecomment-1131440640.

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.

abiosoft avatar May 31 '22 07:05 abiosoft

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

rouge8 avatar Apr 27 '23 00:04 rouge8