If you are passing a row of parked vehicles to your right and there is no oncoming traffic to your left, you should ride:

If you are passing a row of parked vehicles to your right and there is no oncoming traffic to your left, you should ride in the left portion of your lane. This will help you avoid hazards, such as car doors that are opening and pedestrians who are stepping out from between vehicles. If there is oncoming traffic, it is best to remain in the center portion of your lane to maximize the amount of space around you.
DMV Writen Test