From 3521f7f9d5ae517328fe986a566c0cbe2cd00662 Mon Sep 17 00:00:00 2001 From: UmamaheshwarN <18457369+UmamaheshwarN@users.noreply.github.com> Date: Sun, 19 Mar 2023 21:12:35 -0400 Subject: [PATCH] Added Docker-Compose Installation Instructions Added Docker-Compose for anyone that needs it Signed-off-by: UmamaheshwarN <18457369+UmamaheshwarN@users.noreply.github.com> --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 2f824fe9..478e98ff 100644 --- a/README.md +++ b/README.md @@ -53,6 +53,21 @@ docker run --privileged --rm tonistiigi/binfmt --install all docker run --privileged --rm tonistiigi/binfmt --install arm64,riscv64,arm ``` +## Installing emulators from Docker-Compose + +```docker +version: "3" +services: + emulator: + image: tonistiigi/binfmt + container_name: emulator + privileged: true + command: --install all + network_mode: bridge + restart: "no" +``` +Only use container `restart-policy` as `no`, otherwise docker will keep restarting the container. + ## Uninstalling emulators ```bash