In this paper we analyze the shape of a droplet inside a smooth container. To characterize their shape in the capillarity regime, we obtain a new form of the Heintze-Karcher inequality for mean convex hypersufaces with boundary lying on curved substrates.