How to prestage an Edge Agent environment
Step 1: Deploy the agent without an Edge key
-p 80:80 \docker run -d \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/lib/docker/volumes:/var/lib/docker/volumes \
-v /:/host \
-v portainer_agent_data:/data \
--restart always \
-e EDGE=1 \
-e EDGE_ID=$PORTAINER_EDGE_ID \
-p 80:80 \
-e EDGE_INSECURE_POLL=1 \
--name portainer_edge_agent \
portainer/agent:2.43.0Step 2: Copy the join token

Step 3: Open the pairing UI


Last updated
Was this helpful?