Skip to content

Latest commit

 

History

History
53 lines (42 loc) · 3.7 KB

notes.md

File metadata and controls

53 lines (42 loc) · 3.7 KB

Building Multi-architecture Images

  1. Install the emulators docker run --privileged --rm tonistiigi/binfmt --install all

  2. Create a new buildx environment docker buildx create --name multiarch --driver docker-container --bootstrap --use

NOTE: It may be necessary to uninstall incorrectly registered emulators e.g. docker run --privileged --rm tonistiigi/binfmt --uninstall qemu-x86_64 before reinstalling them.

References

  1. https://docs.docker.com/build/building/multi-platform/
  2. docker/buildx#464

To allocate resources for WSL2, create the file .wslconfig in the %UserProfile% directory. Allocate 4GB of RAM (or more if available) like this:

[wsl2]
memory=4GB

Other settings can also be applied.

On macOS and Windows [1], a linux virtual machine (Moby based on Alpine Linux) acts as an intermediary in which images, containers and volumes are stored.

Footnotes

  • [1]: On macOS the Linux virtual machine which hosts the containers can be inspected with the command:
screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
  • [2]: If you are using PowerShell, you can enable tab completion by installing the PowerShell module posh-docker. Similarly, for tab completion of git commands in PowerShell, install posh-git.

TODO