Container docker persistent


#1

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


(RĂ©gis Hanol) #2

Not sure what you’re asking here… :confused:

Docker will automatically restart the containers when the machine boots back up. Does that help?


#3

Yeah my ask was so much ambiguous, sorry :grin:.
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?


(RĂ©gis Hanol) #4

You will have to read about docker’s restart policies.


(Sam Saffron) #5

Keep in mind. ./launcher is smart about ensuring we have restart policies in place.


#6

Thank’s a lot im running persistent containers now, bur the restart policies, always restart the container in the correct order?