this post was submitted on 24 Jul 2023
5 points (85.7% liked)

Docker

1084 readers
1 users here now

founded 1 year 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
[โ€“] [email protected] 1 points 1 year 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.

[โ€“] [email protected] 2 points 1 year ago

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