Most store-bought traditional-style pesto will contain dairy. Checking the label or buying a vegan pesto is the only way to ensure it doesn't.