Posted in: Geral

Como Instalar Portainer no Debian 11

Como instalar Docker no Debian 11

sudo apt update && sudo apt upgrade -y
image
sudo apt install apt-transport-https ca-certificates curl gnupg2 software-properties-common -y
image 1
sudo curl -LR https://download.docker.com/linux/debian/gpg -o /etc/apt/trusted.gpg.d/docker.gpg.asc
image 2
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
image 3
sudo apt install docker-ce -y
image 4
sudo systemctl status docker
image 5

Como instalar Docker Compose no Debian 11

sudo apt update && sudo apt upgrade -y
image 6
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
image 7
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
docker-compose --version
image 8

Como Instalar Portainer no Debian 11

sudo docker volume create portainer_data
image 9
sudo docker pull portainer/portainer-ce:latest
image 10
sudo docker run -d -p 9000:9000 -p 8000:8000 --name portainer --restart always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest
image 11
firefox http://192.168.1.100:9000/

Aceder á interface gráfica do Portainer

image 12
image 13
image 14
Back to Top