Hi, how i can make a container like Discourse container, i dont know how run my container and let them running if my server is shut down
Not sure what you’re asking here…
Docker will automatically restart the containers when the machine boots back up. Does that help?
Yeah my ask was so much ambiguous, sorry .
My question is:
when the server shut down the docker container usually stop and stay exited, don’t restart automatically when the machine boots and docker engine start again, but the discourse container it does.
How i can make my other containers do the same?
You will have to read about docker’s restart policies.
Keep in mind. ./launcher
is smart about ensuring we have restart policies in place.
https://github.com/discourse/discourse_docker/blob/master/launcher#L370
Thank’s a lot im running persistent containers now, bur the restart policies, always restart the container in the correct order?
This topic was automatically closed after 3243 days. New replies are no longer allowed.