Webux Lab

By Studio Webux

Install docker and docker-compose on raspbian

TG
Tommy Gingras Studio Webux 2022-04-16

Install Docker on Raspbian

I’ve tried different approaches and that one has worked… The real rootless thingy wasn’t working at all.

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh ./get-docker.sh
sudo usermod -aG docker ${USER}

sudo apt install -y libffi-dev libssl-dev
sudo apt install -y python3-dev
sudo apt install -y python3 python3-pip

sudo pip3 install docker-compose

sudo systemctl enable docker

Then you can deploy a docker-compose.yml

version: "2"

services:
  gitea-server:
    image: gitea/gitea:1.16.5-rootless
    restart: always
    volumes:
      - ./data:/var/lib/gitea
      - ./config:/etc/gitea
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "80:3000"
      - "2222:2222"

In case you have issues with the permissions: chown -R 1000:1000 ./config ./data


Search