ip addr show | grep inet
# It shows your current ip
sudo apt update
# Updates your repository
sudo apt upgrade
# Updates your packets
sudo apt install nala
# Nala is an alternative UI for apt. it is not a different package manager. for more information [ Ссылка ]
sudo nala install docker.io -y
# It installs docker
sudo reboot 0
# Restarts your system
sudo su
# It changes your user to root
docker run hello-world
# Comand that can be used to test if docker is correctly installed
docker volume create portainer_data
# it creates a persistent volume for portainer to use
docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:2.11.1
# Comand that installs portainer. for more information [ Ссылка ]
docker ps
# it shows current containers running
Ещё видео!