Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker compose setup #89

Open
maxdd opened this issue Jun 1, 2022 · 1 comment
Open

docker compose setup #89

maxdd opened this issue Jun 1, 2022 · 1 comment

Comments

@maxdd
Copy link

maxdd commented Jun 1, 2022

Hello,
i have some x86 app that are emulated on a RPi.
I would like to setup a docker compose so that binfmt is also triggered during the init phase of my system.
How do you handle the '--install all', is it default if omitted?
The "privileged" key seems to be quite straightforward according to https://docs.docker.com/compose/compose-file/compose-file-v3/

@nandyalu
Copy link
Contributor

@maxdd You can easily do this using docker compose, all you need to do is add command: --install all to docker compose.

Make sure you add restart: "no" so that docker won't go into a restarted when the container exits after installing the emulators.

Here's the full compose:

version: "3"
services:
  emulator:
    image: tonistiigi/binfmt
    container_name: emulator1
    privileged: true
    command: --install all
    network_mode: bridge
    restart: "no"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants