this post was submitted on 24 Jul 2023
6 points (100.0% liked)

Docker

1318 readers
4 users here now

founded 2 years ago
MODERATORS
 

According to the documentation to change the Portainer address and Edge agent talks to, you have to redeploy the Edge agent. If I understand properly this is going to assign the agent a new ID and will blow away the configuration.

Does anyone know how to do this while retaining the stack configurations?

top 2 comments
sorted by: hot top controversial new old
[โ€“] urda@lebowski.social 1 points 2 years ago (1 children)

You should be able to replace the edge agent, and it will "orphan" the running containers. Re-deploy your stacks from there.

I'll probably do a test run first, but I'll give that a try. Thanks.