DEV Community

Cover image for Install Docker & Portainer on Raspberry Pi
Juan Diaz
Juan Diaz

Posted on

Install Docker & Portainer on Raspberry Pi

This is one of the easiest way to install docker and Portainer on a Raspberry Pi.

Update and upgrade your system.

    Sudo apt-get update && sudo apt-get upgrade
Enter fullscreen mode Exit fullscreen mode

Install git

   Sudo apt install git
Enter fullscreen mode Exit fullscreen mode

Install Docker

    1. Mkdir Downloads
    2. cd Downloads
    3. git clone https://github.com/novaspirit/pi-hosted
    4. cd pi-hosted
    5. ls
    6.   ./install_docker.sh    #install docker
    7. exit   #logout
    8. login
    9. groups  # to check if docker is in the group
Enter fullscreen mode Exit fullscreen mode

Install Portainer

    1. cd Downloads/pi-hosted
    2. ./install_portainer.sh
Enter fullscreen mode Exit fullscreen mode

Reference:

Thanks to Novaspirit tech, I can not only install docker with one script, but also setup my own home server and host plenty of apps. Follow his channel to see more tutorial.

Top comments (0)