#!/bin/bash docker service create \ --name portainer \ --constraint 'node.role == manager' \ --mount type=bind,src=//opt/portainer,dst=/data \ --mount type=bind,src=//var/run/docker.sock,dst=/var/run/docker.sock \ --network bnet \ portainer/portainer \ -H unix:///var/run/docker.sock