How to manage docker contain mongoDB got failed

Hello,

My MongoDB is working with docker only, suppose if got failed what will do. what is technology is using for prevent this ??