Podman: Difference between revisions

Klinger (talk | contribs)
m Added link to website
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>