failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0

failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0

Using Laravel Sail. I was trying the sail build command.

And was met by this error. In WSL2 set up and docker.

failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: failed to authorize: rpc error: code = Unknown desc = failed to fetch oauth token

 

To fix this run in your Terminal.

export DOCKER_BUILDKIT=0
export COMPOSE_DOCKER_CLI_BUILD=0

Categories: Category 1