containers are programs. like your main method program which calls various methods from your objects. like containers calls init() method of you HttpServlet, when servlet is loaded onto container. then for every request it calls your service methods.
container also reads your web.xml and instantiates ServletContext and ServletConfig object...