How to installing Docker in Raspberry Pi 4

  In this tutorial. How to installing Docker in Raspberry Pi 4

1. Setup OS in the Raspberry Pi

I used Ubuntu OS.

2. Update your system

$ sudo apt update && sudo apt upgrade

3. Install basic packages

$ sudo apt install net-tools git openssh-server

Setting up Docker

$ sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common
$ curl -fsSL | sudo apt-key add -
$ sudo add-apt-repository "deb [arch=arm64] $(lsb_release -cs) stable"
$ sudo apt-get update
$ apt-cache policy docker-ce
$ sudo apt-get -y install docker-ce
$ sudo usermod -aG docker ${USER}

Installing Docker Compose

$ sudo apt install python3-pip
$ sudo pip3 install docker-compose

The basic command docker compose

Then deploy the application:

$ docker-compose up -d

Find what docker-compose is running with the following command:

$ docker-compose ps

To remove the application

$ docker-compose down



Popular posts from this blog

zimbra some services are not running [Solve problem]

How to install php7 on centos 6

Bash script list all IP addresses connected to Server