run.sh 766 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. # docker run -d \
  3. # -v /var/run/docker.sock:/var/run/docker.sock \
  4. # -v /mnt/portainer/:/data \
  5. # -l "traefik.frontend.rule=Host:portainer.bodicsek.host" \
  6. # -l "traefik.enable=true" \
  7. # --name portainer \
  8. # portainer/portainer:latest
  9. docker service create \
  10. --mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \
  11. --mount type=bind,source=/mnt/portainer,target=/data \
  12. --network traefik-net \
  13. --name portainer \
  14. --no-resolve-image \
  15. --constraint "node.role==manager" \
  16. --label traefik.frontend.rule=Host:portainer.bodicsek.host \
  17. --label traefik.port=9000 \
  18. --label traefik.enable=true \
  19. portainer/portainer:linux-arm