Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restart docker images after computer/docker restart #68

Closed
likeadeckofcards opened this issue Aug 26, 2020 · 4 comments
Closed

Restart docker images after computer/docker restart #68

likeadeckofcards opened this issue Aug 26, 2020 · 4 comments

Comments

@likeadeckofcards
Copy link
Contributor

What is the best way to restart docker images after a computer/docker restart?

@tcampbPPU
Copy link

For traditional docker images spun up should be able to add the additional policy via $ docker update
So, for example, list your docker images

$ docker ps -a

Then obtain the container ID for the image you want to update and update its policy

$ docker update --restart unless-stopped contianer_id

Also, make sure you have the setting "Start Docker Desktop when you log in" enabled

@bandgeekndb
Copy link
Contributor

Would this make sense to add as a prompt when enabling a service? Ask if the user wants the service restarted with docker/computer and then run this command behind the scenes if it's desired?

@mattstauffer
Copy link
Member

Hm, I'm also wondering if it's possible to do that without the prompt. Problem is, if we auto restarted every container every time, some folks might not like that since they don't want all their containers always running, so we would have to keep track at any given moment of which are started and stopped, and that also seems like a pain...

@josecanhelp
Copy link
Contributor

This feels like a configuration that Takeout should not be managing. If a container needs to be started, just list the containers and select the ones you need to start. This will be a much smoother process in the node port, btw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants