Skip to content

Fix apt-get hash sum mismatch during Docker build on Apple Silicon - #23

Open
Racegirl wants to merge 1 commit into
SNL-UCSB:mainfrom
Racegirl:fix/dockerfile-apt-hash-mismatch-Racegirl
Open

Fix apt-get hash sum mismatch during Docker build on Apple Silicon#23
Racegirl wants to merge 1 commit into
SNL-UCSB:mainfrom
Racegirl:fix/dockerfile-apt-hash-mismatch-Racegirl

Conversation

@Racegirl

Copy link
Copy Markdown

Adds apt config to disable pipelining and force retries, working
around package corruption from QEMU emulation when building
linux/amd64 images on Apple Silicon Macs.

Fix

Added an apt config file (99fixbadproxy) before the install step that:

  • disables HTTP pipelining
  • disables HTTP caching
  • treats the proxy as broken
  • retries failed downloads up to 5 times

Verified the image builds successfully and runs correctly on an Apple
Silicon Mac with this change

Adds apt config to disable pipelining and force retries, working
  around package corruption from QEMU emulation when building
  linux/amd64 images on Apple Silicon Macs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant