Note: This site is currently "Under construction". I'm migrating to a new version of my site building software. Lots of things are in a state of disrepair as a result (for example, footnote links aren't working). It's all part of the process of building in public. Most things should still be readable though.

Fix issues with Docker build problem

Had this problem:

Code

$ docker build -t my-container-name .
[+] Building 0.3s (3/3) FINISHED
 => [internal] load build definition from Dockerfile                                   0.0s
 => => transferring dockerfile: 37B                                                    0.0s
 => [internal] load .dockerignore                                                      0.0s
 => => transferring context: 2B                                                        0.0s
 => ERROR [internal] load metadata for public.ecr.aws/lambda/python:3.8                0.1s
------
 > [internal] load metadata for public.ecr.aws/lambda/python:3.8:
------
failed to solve with frontend dockerfile.v0: failed to create LLB definition: unexpected status code [manifests 3.8]: 400 Bad Request

Based on this answer: https://stackoverflow.com/a/66993669/102401

I figured I'd troubleshoot with this:

Code

DOCKER_BUILDKIT=0  docker build .

That command was successful and then I could run my original command and it worked. not sure what happened there, but that cleared whatever it was.