Huu Phan | Blog Linux operating system | Linux operating system -Blog Huu Phan | www.huuphan.com
huuphan.com. Powered by Blogger.

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 https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
$ sudo add-apt-repository "deb [arch=arm64] https://download.docker.com/linux/ubuntu $(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

 

post new :

Huu Phan | Blog Linux operating system | Huu Phan ~ Zimbra Mail Server,linux,bash script,centos,linux command | www.huuphan.com