…of course:
sudo apt update && sudo apt upgrade
Install docker:
Method 1:
sudo apt install docker.io
Method 2:
curl -fsSL https://get.docker.com -o get-docker.sh sudo sh get-docker.sh
By default the docker cannot be accessed without using sudo:
$ docker info Got permission denied while trying to connect to the Docker daemon socket...
To use the docker as non-root user run the following commands:
sudo usermod -aG docker [user_name] newgrp docker
check:
docker version # or docker info # or docker run hello-world
Sources:
– https://phoenixnap.com/kb/docker-on-raspberry-pi
– https://ostechnix.com/how-to-run-docker-as-non-root-user-in-linux/
The docker package is called “docker.io”