Make sure your container is set to "Restart: Always", for some reason the cookie server was coded to quit after it gets the cookie so then the container needs to be restarted (but it should not log out if you set it up correctly with a persistent storage space). See guide here: [GUIDE] Echo Speaks Server on Docker (or without)
There are settings in he HE Echo Speaks app to send you alerts if the cookie refresh fails and various other things, I think some are off by default.