admin/environments/add/swarm/README.md
When connecting a Docker Swarm environment to Portainer, there are a few different methods you can use depending on your particular requirements. You can install the Portainer Agent on the Docker Swarm cluster and connect via the agent, you can connect directly to the Docker API or the Docker socket, or you can deploy the Portainer Edge Agent in standard or async mode.
Regardless of the method you choose, there are some generic requirements you will need to meet. You will require:
sudo, root or Administrator access on the manager node of your swarm cluster.The installation instructions also make the following assumptions about your environment: