Podman: Difference between revisions
m Added link to website |
Jonniecache (talk | contribs) No edit summary |
||
| Line 49: | Line 49: | ||
}; | }; | ||
} | } | ||
</syntaxHighlight> | |||
=== Run cross architecture containers with binfmt/qemu === | |||
<syntaxHighlight lang="nix"> | |||
boot.binfmt = { | |||
emulatedSystems = [ "aarch64-linux" ]; | |||
preferStaticEmulators = true; # required to work with podman | |||
}; | |||
</syntaxHighlight> | |||
<syntaxHighlight lang="sh"> | |||
$ podman run --arch arm64 'docker.io/alpine:latest' arch | |||
aarch64 | |||
</syntaxHighlight> | </syntaxHighlight> | ||