How to preserve login on update node/docker?

Node/ Docker

One thing i have never been able to resolve is how to preserve login credentials across an update with node. Every time i update a file i get logged out. I assume this is linked to a server restart.
Is there a way to preserve a login on update

Community Page
Last updated: