Shallots can be kept in an airtight container for a long time. On the other hand, whole shallots should never be stored in an airtight jar. Before keeping them, slice or mince them instead. Airtight pouches can also be used instead of airtight jars and containers.