Storing food in a container lined with aluminum foil facing the food is generally safe as long as the foil is food-grade and the food is not acidic or high in salt. Aluminum foil is non-toxic and does not react with most foods. However, it's important to avoid using it with acidic foods like tomatoes or citrus fruits, as this can cause the foil to corrode and release aluminum. Also, avoid using it with high-salt foods as this can lead to a chemical reaction. Always ensure the foil is clean and undamaged to prevent any potential contamination.