fhsinchy/tent

OS restarts

Opened this issue · 8 comments

Does using tent start persist the podman container after OS restarts? If so, then that's not the case on my OS.

Fedora 34, running latest version of podman and tent.

It depends on what you do before restarting your OS. If you stop the container by executing tent stop mongo then the container will be removed but the data volume will be kept. The next time you start the service a new container will be created.

If you restart the OS without executing tent stop mongo however, the container will be kept. So the next time you start the service the old container will be restarted.

The output of the start and stop commands actually prints out if the a new container is created or not or if a container is being removed.

So if I don't do tent stop mongo before restarting, the container will not automatically start? So I have to start it again?

You'll have to start the container everytime you boot your computer. No matter if yiu stoooed it or not. The services are not registered to start on startup. They're just containers giving an illusion of having a service running. I hope that makes it clearer mate.

Yes, it does. Thank you for the clarification. Maybe as a future update you could add a flag to register it as a service that starts on start up if it doesn't complicate things.

This was requested during the Podman Community meeting as well. I'll have a look into implementing this once I have some more free time for sure.

Alright. Thank you for your time.

Any progress on this?

No not yet. I'm a little busy these days sadly. Also need to update the codebase with the latest tagged version of their bindings. Right now, I can't give any ETA either.