Visitas: 1
Tengo una Raspberry PI 4 de 8 GB y estoy haciendo un servidor para que contenga contenedores docker. En este post voy a estar mostrando como tener docker en nuestra distro Raspberry Pi OS
Obs:
- Se utiliza Raspberry Pi OS (Debian Buster) de 64 bits.
Entramos a la terminal y tecleamos lo siguiente:
sudo apt update sudo apt upgrade sudo apt install raspberrypi-kernel raspberrypi-kernel-headers curl -sSL https://get.docker.com | sh
Sale por pantalla:
Client: Docker Engine - Community Version: 20.10.6 API version: 1.41 Go version: go1.13.15 Git commit: 370c289 Built: Fri Apr 9 22:46:18 2021 OS/Arch: linux/arm Context: default Experimental: true Server: Docker Engine - Community Engine: Version: 20.10.6 API version: 1.41 (minimum version 1.12) Go version: go1.13.15 Git commit: 8728dd2 Built: Fri Apr 9 22:44:17 2021 OS/Arch: linux/arm Experimental: false containerd: Version: 1.4.4 GitCommit: 05f951a3781f4f2c1911b05e61c160e9c30eaa8e runc: Version: 1.0.0-rc93 GitCommit: 12644e614e25b05da6fd08a38ffa0cfe1903fdec docker-init: Version: 0.19.0 GitCommit: de40ad0
Entramos de nuevo a la terminal:
sudo usermod -aG docker pi sudo reboot
Volvemos a teclear en la terminal:
docker version
Sale por la pantalla:
Client: Docker Engine - Community Version: 20.10.6 API version: 1.41 Go version: go1.13.15 Git commit: 370c289 Built: Fri Apr 9 22:46:18 2021 OS/Arch: linux/arm Context: default Experimental: true Server: Docker Engine - Community Engine: Version: 20.10.6 API version: 1.41 (minimum version 1.12) Go version: go1.13.15 Git commit: 8728dd2 Built: Fri Apr 9 22:44:17 2021 OS/Arch: linux/arm Experimental: false containerd: Version: 1.4.4 GitCommit: 05f951a3781f4f2c1911b05e61c160e9c30eaa8e runc: Version: 1.0.0-rc93 GitCommit: 12644e614e25b05da6fd08a38ffa0cfe1903fdec docker-init: Version: 0.19.0 GitCommit: de40ad0
Para que docker se inicie cuando se encienda el equipo:
sudo systemctl enable docker.service