Portainer Agent Missing

Hey Guys,

I was just tooling around this morning checking the health of my swarm an noticed one of my nodes says it was down. So I ssh’d into it and it was actually up. I noticed the portainer agent is gone/missing. I suspect that it says it’s down because the portainer agent is missing from the node. How do I redeploy portainer agent to this node to bring it back online in my swarm and portainer?


Hi there,
What command did you use to deploy the agent?

Sorry it took me so long to get back to you but here is what I used to deploy it via the swarm:
sudo curl -L https://downloads.portainer.io/portainer-agent-stack.yml -o portainer-agent-stack.yml
sudo docker stack deploy -c portainer-agent-stack.yml portainer

Thanks for your reply,