Skip to content

Conversation

ddsharpe
Copy link
Member

@ddsharpe ddsharpe commented Jan 25, 2021

Docker has not fixed the bug in the new buildkit for quite some time. And worse, the new install defaults to enabling the new buildkit feature. This Docker bug causes the Docker build step in Image Tool to fail with:
failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to parse stage name "OS_UPDATE": invalid reference format: repository name must be lowercase

To see the error, the buildkit must be enabled in the Docker preferences/config:
{
"debug": true,
"experimental": false,
"features": {"buildkit": true }
}

Copy link
Member

@jshum2479 jshum2479 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably need to document this change will affect existing user's additional build commands referring to the layer as upper case.

@jshum2479
Copy link
Member

Another option is to use these env before image tool to disable buildit. Though I really like the super fast build speed with buildit

export DOCKER_BUILDKIT=0
export COMPOSE_DOCKER_CLI_BUILD=0

@ddsharpe ddsharpe requested a review from rjeberhard February 2, 2021 22:52
@ddsharpe ddsharpe merged commit 04d265a into master Feb 3, 2021
@ddsharpe ddsharpe deleted the docker-buildkit branch February 3, 2021 18:00
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

Successfully merging this pull request may close these issues.

3 participants