Error building and running Docker Containers in M3 Pro

Hi Community, I’ve been facing issues since yesterday out of nowhere. Now, when I try to build and run a container using VSCode DevContainers extension I got the following error:

ERROR: failed to run Build function: ResourceExhausted: grpc: received message larger than max (4480149 vs. 4194304)

Also, when I try to build images using the build command they take a lot more than before.
I already tried:

  1. Creating another cross-platform runner (Log in with Atlassian account)
  2. Updating my OS and Docker
  3. Uninstalling Docker and re-installing it
  4. Resetting Docker configs to default
  5. Resetting my computer to Fabric Settings.
  6. Dowgrade Docker to a previous version.

None have worked.

I have a MacBook with chip M3 Pro and I’m using buildx , a CLI plugin that integrates the Moby BuildKit toolkit. This allows you to build a Docker Image for a variety of different CPU architectures and it uses QEMU under the hood to do the emulation.

Any ideas of what I could be doing wrong?

More on the error:

 => => transferring context: 2B                                            0.0s
[2024-04-16T13:48:33.100Z] ERROR: failed to run Build function: ResourceExhausted: grpc: received message larger than max (4480149 vs. 4194304)

View build details: e]8;;docker-desktop://dashboard/build/hardcore_mclean/hardcore_mclean0/mftx3tpj5qirittukagg8idaee\docker-desktop://dashboard/build/hardcore_mclean/hardcore_mclean0/mftx3tpj5qirittukagg8idaee]8;;e\
[2024-04-16T13:48:33.114Z] Stop (9818 ms): Run: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /var/folders/xs/rv69yfcn0xz56mg6sd0p71sh0000gn/T/devcontainercli/container-features/0.58.0-1713275303295/Dockerfile-with-features -t vsc-polco-analytics-9f10e1ad9a409a9da55d137f80bc78b9a73f920c2e7789d51c4994211a671aa8 --target dev_containers_target_stage --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /Users/nicomedrano/Documents/GitHub/polco-analytics
[2024-04-16T13:48:33.115Z] Error: Command failed: docker buildx build --load --build-arg BUILDKIT_INLINE_CACHE=1 -f /var/folders/xs/rv69yfcn0xz56mg6sd0p71sh0000gn/T/devcontainercli/container-features/0.58.0-1713275303295/Dockerfile-with-features -t vsc-polco-analytics-9f10e1ad9a409a9da55d137f80bc78b9a73f920c2e7789d51c4994211a671aa8 --target dev_containers_target_stage --build-arg _DEV_CONTAINERS_BASE_IMAGE=dev_container_auto_added_stage_label /Users/nicomedrano/Documents/GitHub/polco-analytics
[2024-04-16T13:48:33.115Z]     at ptA (/Users/nicomedrano/.vscode/extensions/ms-vscode-remote.remote-containers-0.354.0/dist/spec-node/devContainersSpecCLI.js:465:1933)
[2024-04-16T13:48:33.115Z]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[2024-04-16T13:48:33.115Z]     at async Pm (/Users/nicomedrano/.vscode/extensions/ms-vscode-remote.remote-containers-0.354.0/dist/spec-node/devContainersSpecCLI.js:464:1841)
[2024-04-16T13:48:33.115Z]     at async kH (/Users/nicomedrano/.vscode/extensions/ms-vscode-remote.remote-containers-0.354.0/dist/spec-node/devContainersSpecCLI.js:464:610)
[2024-04-16T13:48:33.115Z]     at async UtA (/Users/nicomedrano/.vscode/extensions/ms-vscode-remote.remote-containers-0.354.0/dist/spec-node/devContainersSpecCLI.js:481:3692)
[2024-04-16T13:48:33.115Z]     at async $C (/Users/nicomedrano/.vscode/extensions/ms-vscode-remote.remote-containers-0.354.0/dist/spec-node/devContainersSpecCLI.js:481:4807)
[2024-04-16T13:48:33.115Z]     at async QrA (/Users/nicomedrano/.vscode/extensions/ms-vscode-remote.remote-containers-0.354.0/dist/spec-node/devContainersSpecCLI.js:661:13255)
[2024-04-16T13:48:33.116Z]     at async urA (/Users/nicomedrano/.vscode/extensions/ms-vscode-remote.remote-containers-0.354.0/dist/spec-node/devContainersSpecCLI.js:661:12996)
[2024-04-16T13:48:33.124Z] Stop (10443 ms): Run: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Users/nicomedrano/.vscode/extensions/ms-vscode-remote.remote-containers-0.354.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /Users/nicomedrano/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-99d81b2b-dbe9-4fff-96a3-7483d5f582471713275302016 --workspace-folder /Users/nicomedrano/Documents/GitHub/polco-analytics --workspace-mount-consistency cached --id-label devcontainer.local_folder=/Users/nicomedrano/Documents/GitHub/polco-analytics --id-label devcontainer.config_file=/Users/nicomedrano/Documents/GitHub/polco-analytics/.devcontainer/devcontainer.json --log-level debug --log-format json --config /Users/nicomedrano/Documents/GitHub/polco-analytics/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root
[2024-04-16T13:48:33.124Z] Exit code 1
[2024-04-16T13:48:33.127Z] Command failed: /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) /Users/nicomedrano/.vscode/extensions/ms-vscode-remote.remote-containers-0.354.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /Users/nicomedrano/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --container-session-data-folder /tmp/devcontainers-99d81b2b-dbe9-4fff-96a3-7483d5f582471713275302016 --workspace-folder /Users/nicomedrano/Documents/GitHub/polco-analytics --workspace-mount-consistency cached --id-label devcontainer.local_folder=/Users/nicomedrano/Documents/GitHub/polco-analytics --id-label devcontainer.config_file=/Users/nicomedrano/Documents/GitHub/polco-analytics/.devcontainer/devcontainer.json --log-level debug --log-format json --config /Users/nicomedrano/Documents/GitHub/polco-analytics/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root
[2024-04-16T13:48:33.127Z] Exit code 1