Lackey (1-0) gave up five hits, struck out eight and walked one.
Lackey, who allowed a pair of two-run homers in six innings in his most recent start, faced the Brewers for just the fourth time in his career.
St. Louis took a 2-0 lead on two doubles and two singles in the sixth inning.