Skip to main content

Setup Ubuntu Server on Raspberry Pi

1. Flash the operating system

To flash ubuntu server onto the SD-card the software Raspberry Pi Imager can be used. It support multiple different operating systems, among other things ubuntu server.

2. Setup Wifi

To setup the Wifi, following tutorial can be used.

3. Setup Docker

  • Update the system
    • sudo apt-get update && sudo apt-get upgrade -y
    • sudo dpkg-reconfigure tzdata
  • Install Docker
    • curl -fsSL https://get.docker.com -o get-docker.sh
    • sudo sh get-docker.sh
  • Add Docker user
    • sudo usermod -aG docker ubuntu
    • exit and relog
  • Verify docker working
    • docker version
    • docker run hello-world
  • Error handling
    • sudo apt install linux-modules-extra-raspi (missing kernel module)
    • reboot

4. Setup Docker Compose

  • sudo curl -L "https://github.com/docker/compose/releases/download/v2.2.3/docker-compose-linux-aarch64" -o /usr/local/bin/docker-compose
  • sudo chmod +x /usr/local/bin/docker-compose

5. Clean-Up

  • rm check-config.sh get-docker.sh