Today I Learned Notes to self about software development

    Docker WSL2 - failed to solve with frontend dockerfile.v0

    I was getting this error when I tried building an image:

    : failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: exit status 255, out: ``
    

    Restarting WSL didn’t help, but I found out that disabling the buildkit does fix it.

    DOCKER_BUILDKIT=0 docker build ...
    

    See SO answer.

    #docker #wsl