Rigid containers in preformed flexible containers