colima
colima copied to clipboard
How to disable output clipping in docker build?
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
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...
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.
It looks like passing the env variable through the config works now