This commit is contained in:
2026-05-28 02:56:22 +02:00
parent c9f72262ac
commit 3d4517f27b
34 changed files with 2313 additions and 40 deletions
+16
View File
@@ -0,0 +1,16 @@
# Setup the Portainer Agent on a Docker Swarm cluster
docker network create \
--driver overlay \
portainer_agent_network
docker service create \
--name portainer_agent \
--network portainer_agent_network \
-p 9001:9001/tcp \
--mode global \
--constraint 'node.platform.os == linux' \
--mount type=bind,src=//var/run/docker.sock,dst=/var/run/docker.sock \
--mount type=bind,src=//var/lib/docker/volumes,dst=/var/lib/docker/volumes \
--mount type=bind,src=//,dst=/host \
portainer/agent:2.39.2