Dodgers right-hander Yoshinobu Yamamoto (4-1) gave up two runs on five hits over a career-best eight innings as the Dodgers moved one victory from a perfect six-game homestand.