This is a tool which enables running balenaOS docker images as a docker container.
Before running this tool make sure:
balenaos-in-container
does not support cgroups v2
yet. Check the version of cgroups
of your machine. Guides for Linux users, and Docker Desktop on Mac users. Downgrade your cgroups
to v1 if you want to use balenaos-in-container
.docker-compose up --build
This assumes you have a config.json
in the project directory. It can be downloaded from your balenaCloud dashboard. Once you have added an application click "Add a new device", click to expand the "Advanced" section and check "Download configuration file only" now click "Download configuration file".
You can find the latest balenaOS images on dockerhub.
If you need to clear volumes and start with a clean state, use the following compose commands:
# bring down all services and remove volumes
docker-compose down --volumes --remove-orphans
# build and bring up services again with new volumes
docker-compose up -d --build
It's possible to run a container images that target other platforms than your host system by registering QEMU's user-mode emulation. Check out https://github.com/dbhi/qus/#setup for how to set that up.
Want to contribute? Great! Throw pull requests at us.