2. Cài portainer

// Trang chủ https://docs.portainer.io/start/install-ce/server/docker/linux

docker volume create portainer_data

// Nếu lỗi Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running thì chạy 2 lệnh này
// systemctl start docker
// systemctl enable docker

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:latest

Sau khi cài đặt xong có thể vào https://localhost:9443 để kiểm tra (thay localhost thành ip của vsp)

Portainer sau khi đã cài đặt xong

Last updated

Was this helpful?