Curd develops bubbles in metal jars due to a chemical reaction between the lactic acid in the curd and the metal, producing hydrogen gas. This gas then forms the bubbles you observe.
Curd, also known as yogurt, contains lactic acid. When curd is stored in a metal jar, particularly if the metal is reactive (like aluminum or certain types of steel), the lactic acid can react with the metal. This reaction is a type of corrosion, where the acid slowly dissolves a tiny amount of the metal. A byproduct of this chemical reaction is hydrogen gas (Hâ‚‚). Because the curd is a semi-solid, the hydrogen gas gets trapped within the curd's structure, forming small bubbles. The rate of bubble formation depends on the acidity of the curd, the type of metal, and the temperature. Warmer temperatures generally accelerate the reaction. The bubbles themselves are harmless, but the reaction can slightly alter the taste and texture of the curd over time.
To prevent bubble formation and potential changes in taste, store curd in glass or food-grade plastic containers. These materials are non-reactive and won't interact with the lactic acid in the curd.