Is it safe to grow vegetables in plastic containers?

Is it safe to grow vegetables in plastic containers?

Using plastic containers to grow food is fine – provided you know which plastics to use. Some plastics are harmful and leach toxins to the soil especially when they are heated or exposed to sunlight or prolonged periods of time.