[DOCKER] CubeOS on Raspbeery Pi 4/5

When I followed the official instructions, it didn’t work for me. This guide is fully functional. It takes a moment for CubeOS to start up, and you just need to enter the Raspberry Pi’s IP address and you’ll get into CubeOS

You need to factor in higher load, it’s probably better to use KVM.

HOW TO INSTALL DOCKER:

  1. sudo apt update && sudo apt upgrade
  2. sudo mkdir -p /etc/apt/keyrings
  3. curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
  4. echo “deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] Index of linux/debian/ $(lsb_release -cs) stable” | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
  5. sudo apt update
  6. sudo apt install docker-ce docker-ce-cli containerd.io
  7. sudo usermod -aG docker $USER
  8. newgrp docker
  9. sudo systemctl enable docker
  10. echo “kernel=kernel8.img” | sudo tee -a /boot/firmware/config.txt
  11. sudo reboot
  12. sudo docker pull https://ghcr.io/ewelinkcube/cube-os:2.11.0

RUN CUBEOS:

docker run -d
–name cubeos
–privileged
–net=host
–restart=unless-stopped
-v /home/xxx/data:/data
-v /run/dbus/system_bus_socket:/host_dbus/system_bus_socket:ro
https://ghcr.io/ewelinkcube/cube-os:2.11.0

xxx - enter you folder name

Example:

Automatic startup after restart. Instead of jojkoba, put the name of your account!!!

Thanks for sharing! Quick question: you mentioned the official docs didn’t work for you, could you point out which part specifically? That’d help us improve the documentation. Thanks in advance!

This part didn’t work for me: docker run -d \ --name cubeos \ --privileged \ --net=host \ -v /xxx/data:/data \ --device /dev/ttyUSB0:/dev/ttyUSB0 \ -v /run/dbus/system_bus_socket:/host_dbus/system_bus_socket:ro \ cubeos:2.11.0