After updating to the latest image the --exclude flag is no longer recognised when trying to build and deploy from our ECR
I experienced the same issue trying to build the image locally with 'docker build -t tag name -f filename.Dockerfile . '
Sending build context to Docker daemon 295.3MB
Error response from daemon: dockerfile parse error on line 49: unknown flag: --exclude
When I switched to using 'docker buildx build -t tag name -f filename.Dockerfile . ' locally the same Dockerfile built successfully.
We've pinned the version to 20.18.6 for now, but obviously this is not a long term fix