How do you teach a dog to open a door?

well i have locked my dog with her 5 kids and now they are able to open the door and come out