#!/bin/bash # docker run -d \ # -v /var/run/docker.sock:/var/run/docker.sock \ # -v /mnt/portainer/:/data \ # -l "traefik.frontend.rule=Host:portainer.bodicsek.host" \ # -l "traefik.enable=true" \ # --name portainer \ # portainer/portainer:latest docker service create \ --mount type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock \ --mount type=bind,source=/mnt/portainer,target=/data \ --network traefik-net \ --name portainer \ --no-resolve-image \ --constraint "node.role==manager" \ --label traefik.frontend.rule=Host:portainer.bodicsek.host \ --label traefik.port=9000 \ --label traefik.enable=true \ portainer/portainer:linux-arm