Skip to content

Instantly share code, notes, and snippets.

@sergey-chechaev
Last active May 16, 2022 16:07
Show Gist options
  • Save sergey-chechaev/2273086d5b685c3b5542820a2128e9f6 to your computer and use it in GitHub Desktop.
Save sergey-chechaev/2273086d5b685c3b5542820a2128e9f6 to your computer and use it in GitHub Desktop.
Selenoid-m1 prepare environment

If you create this built on Silicon M1 you need to use flag platform linux/amd64

  1. Specify the environment variable
export DOCKER_CLI_EXPERIMENTAL=enabled
  1. Show buildx version information
docker buildx version
  1. Docker run
docker run - rm - privileged --platform linux/amd64 docker/binfmt:a7996909642ee92942dcd6cff44b9b95f08dad64
  1. Check if amd64 is enabled
cat /proc/sys/fs/binfmt_misc/qemu-aarch64 -> the output should be enabled
  1. Create build for arm
docker buildx create --name armbuilder  
  1. Check if output is armbuilder
docker buildx ls -> the output should be armbuilder
  1. Use armbuilder
docker buildx use armbuilder
docker buildx inspect --bootstrap
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment