Former Portland Sea Dogs pitcher Terry Doyle is still on a quest to reach the major leagues.

Doyle, 29, may have helped his cause Sunday, throwing a shutout for the Bowie Baysox in a 5-0 win over the Sea Dogs at Hadlock Field.

Doyle is in his eighth pro season, a stint that included a year in the Red Sox organization in 2013, when he pitched for both Triple-A Pawtucket and Portland. He spent most of last year in Triple-A with the Braves, and signed with the Orioles this season.

“My role is to fill in wherever they need me, in the rotation or bullpen,” said Doyle, a native of Concord, Massachusetts. “Hopefully I can get up to Triple-A, and hopefully help the big league club at some point. Just waiting my turn.”

Doyle became the second straight former Portland pitcher to beat the Sea Dogs. Joe Gunkel, traded last week, did it on Saturday.

Doyle (5-1) limited Portland to seven hits and no walks. He threw 111 pitches (76 strikes). Doyle allowed two hits in the ninth, but got a flyout and groundout to finish it.

“I was a little nervous after that second hit in the ninth. I saw our closer (warming) up,” said Doyle, who kept the Sea Dogs off balance with control of both his fastball and change-up.

Trey Mancini and Mike Yastrzemski homered to pace Bowie (31-25).

William Cuevas (6-3) started for the Sea Dogs and struck out seven over 4 1/3 innings. But he also allowed four runs, including a solo shot by Mancini in the second inning and Yastrzemski’s two-run homer in the fifth.

Yastrzemski stuck out twice before his homer to right-center field.

“He throws a lot of change-ups and sliders and they’re pretty effective,” said Yastrzemski, who hit a change-up for his second home run of the season.

“I was looking for it,” Yastrzemski said.

Oscar Tejeda had three of Portland’s seven hits to raise his average to .304.

The loss continued a trend of offensive woe for the Sea Dogs (23-34). They lost their fourth straight game, the last two by shutout. Portland is 1-7 in its last eight games, scoring a total of 15 runs.

The Sea Dogs also saw their bullpen scoreless streak snapped. Portland relievers had not allowed an earned run in 27 2/3 innings until Pat Light gave up one in the ninth. After an infield hit and a ground-ball single to right put runners on first and third, Bowie scored on a double play. Light still needed only seven pitches (five strikes) in the inning. In his last 17 games, he has a 0.98 ERA.

NOTES: The announced paid attendance was a sellout (7,368). … The Sea Dogs will spend a lot of time on the road, with 13 of their next 16 games away from Hadlock. Their next game is Tuesday in Richmond, which San Francisco Giants pitcher Matt Cain is scheduled to make a rehab start for the Flying Squirrels. … The Dogs will be home for a three-game series with Binghamton June 16-18. … While Doyle returned to face his old team, Hadlock fans just missed seeing another former Sea Dog. Infielder Derrik Gibson was promoted from Bowie two weeks ago to Triple-A Norfolk, where he is batting .348. Gibson, 25, played three seasons in Portland before signing with Baltimore as a minor league free agent.