C2A-Installation-Server/docker/portainer.sh

8 lines
229 B
Bash
Raw Normal View History

docker volume create portainer_data
docker run --detach /
--name portainer
--publish 8002:9000 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v portainer_data:/data \
--restart unless-stopped \
portainer/portainer:latest