tent icon indicating copy to clipboard operation
tent copied to clipboard

OS restarts

Open melvinotieno opened this issue 3 years ago • 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.

melvinotieno avatar May 14 '21 18:05 melvinotieno

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.

fhsinchy avatar May 14 '21 19:05 fhsinchy

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

melvinotieno avatar May 14 '21 19:05 melvinotieno

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.

fhsinchy avatar May 14 '21 19:05 fhsinchy

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.

melvinotieno avatar May 14 '21 19:05 melvinotieno

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.

fhsinchy avatar May 14 '21 19:05 fhsinchy

Alright. Thank you for your time.

melvinotieno avatar May 14 '21 19:05 melvinotieno

Any progress on this?

melvinotieno avatar Jul 01 '21 12:07 melvinotieno

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.

fhsinchy avatar Jul 01 '21 13:07 fhsinchy