Giter Club home page Giter Club logo

balenaos-in-container's Introduction

balenaOS in container

balenaOS in a docker container

This is a tool which enables running balenaOS docker images as a docker container.

Prerequisites

Before running this tool make sure:

  1. Docker daemon is running
  2. Current user has privileges to run docker commands.
  3. Depending on what balenaOS image you are trying to boot, you might need aufs or overlayfs on your host.
  4. The balenaOS image is compatible with the architecture where you are running the script. e.g. If you are running this script on your laptop (x86_64), you can run balenaOS images built for the NUC which are also x86_64. ***
  5. 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.

How to use

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

Running other architectures

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.

Development

Want to contribute? Great! Throw pull requests at us.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.