• Stars
    star
    933
  • Rank 48,777 (Top 1.0 %)
  • Language
    Go
  • License
    MIT License
  • Created over 4 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Cross-platform emulator collection distributed with Docker images.

Binfmt

CI Status Go Report Card Docker Pulls

Cross-platform emulator collection distributed with Docker images.

Build local binaries

docker buildx bake

This builds the qemu-user emulator binaries for your local plaform to the bin directory.

Build test image

REPO=myuser/binfmt docker buildx bake --load mainline
docker run --privileged --rm myuser/binfmt

Prints similar to:

{
  "supported": [
    "linux/amd64",
    "linux/arm64",
    "linux/riscv64",
    "linux/ppc64le",
    "linux/s390x",
    "linux/386",
    "linux/arm/v7",
    "linux/arm/v6"
  ],
  "emulators": [
    "qemu-aarch64",
    "qemu-arm",
    "qemu-i386",
    "qemu-ppc64le",
    "qemu-riscv64",
    "qemu-s390x"
  ]
}

Installing emulators

docker run --privileged --rm tonistiigi/binfmt --install all
docker run --privileged --rm tonistiigi/binfmt --install arm64,riscv64,arm

Uninstalling emulators

docker run --privileged --rm tonistiigi/binfmt --uninstall qemu-aarch64

Emulator names can be found from the status output.

You can also uninstall all archs for a specific emulator:

docker run --privileged --rm tonistiigi/binfmt --uninstall qemu-*

Display version

docker run --privileged --rm tonistiigi/binfmt --version
binfmt/9a44d27 qemu/v6.0.0 go/1.15.11

Development commands

# validate linter
./hack/lint

# validate vendored files
./hack/validate-vendor

# update vendored files
./hack/update-vendor

# test, only run on nodes where you allow emulators to be installed in kernel
./hack/install-and-test

Test current emulation support

docker run --rm arm64v8/alpine uname -a
docker run --rm arm32v7/alpine uname -a
docker run --rm ppc64le/alpine uname -a
docker run --rm s390x/alpine uname -a
docker run --rm tonistiigi/debian:riscv uname -a

buildkit target

This repository also provides helper for BuildKit's automatic emulation support moby/buildkit#1528. These binaries are BuildKit specific and should not be installed in kernel with binfmt_misc.

Licenses

MIT. See LICENSE for more details. For QEMU see https://wiki.qemu.org/License

More Repositories

1

audiosprite

Jukebox/Howler/CreateJS compatible audio sprite generator
JavaScript
680
star
2

xx

Dockerfile cross-compilation helpers
Shell
375
star
3

styler

CSS/Stylus live editor
JavaScript
133
star
4

buildkit-pack

buildkit frontend for buildpacks
Go
129
star
5

mega

THIS REPO IS NOT MAINTAINED. Unofficial Node.js SDK for Mega
JavaScript
118
star
6

wasm-cli-plugin

Go
56
star
7

fsutil

Go
52
star
8

presentty

Go
45
star
9

buildcache

Go
42
star
10

go-actions-cache

Go
38
star
11

llb-gobuild

Go
21
star
12

ipizza

Node.js implementation for Estonian(and some other) banklink payments.
JavaScript
16
star
13

vzor

gvisor hacks
Go
13
star
14

megaspeaker

Mobile phones playing together in perfect sync
JavaScript
13
star
15

go-archvariant

Go
6
star
16

vendor.js

Javascript assets downloader. This repo is no longer maintained. Use visionmedia/asset instead, or browserify or component.
CoffeeScript
5
star
17

dockerfile

development happens in https://github.com/moby/buildkit/tree/master/frontend/dockerfile
Go
5
star
18

go-rosetta

Go
4
star
19

buildkit-alpine

Buildkit Alpine frontend. Only demo purposes for now
Go
4
star
20

riscv-dockerfiles

Dockerfile
3
star
21

redisparse

Streaming Redis response parser
JavaScript
3
star
22

copy

Go
2
star
23

ci-token-server

Go
2
star
24

docker-bpftool

Dockerfile
2
star
25

go-csvvalue

Single line CSV parser
Go
2
star
26

units

Go
1
star
27

drawmusic

Children game where you draw stuff and hear it play
JavaScript
1
star
28

kv-redis

Redis endpoint for dominictarr/kv
JavaScript
1
star
29

retina.js

High quality images on every zoom level. This project has been abandoned. Just use media queries or -webkit-image-set.
CoffeeScript
1
star
30

repo-copy

Go
1
star
31

pangalink.net-client

Node.js client and CLI utility for pangalink.net
JavaScript
1
star
32

buildkit_http_sample

Go
1
star
33

nsenter

Dockerfile
1
star