Update portainer.sh

This commit is contained in:
RomanNum3ral 2025-06-22 03:35:45 +00:00
parent fac58333ed
commit f146d22479
1 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,9 @@
#!/bin/bash
path=$PWD
docker volume create portainer_files
docker run -d -p 9443:9443 -p 8000:8000 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest
mkdir ../docker_volumes
mkdir ../docker_volumes/portainer
mv portainer.yaml ../docker_volumes/portainer
cd ../docker_volumes/portainer
docker compose up -d