it really depends on where you live, but in general motorcycles must follow the same laws as cars.
The City generally does not distinguish between passenger cars and motorcycles when it comes to parking regulations. As such, motorcycles are eligible to park in any parking space that a passenger car is allowed to park in. This includes paid parking spaces (meter or pay station), spaces with time-limit restrictions, and spaces that are unrestricted (but still subject to the citywide 72-hour on-street time limit).
More than one motorcycle may occupy a parking space as long as there is sufficient space and all parking regulations are observed. The City has also designated more than 100 parking spaces around the city for the exclusive use of motorcycles and scooters.
Some Places Motorcycles May Not Park
All regular parking regulations apply to motorcycles including not parking in front of fire hydrants, within 5 feet of a driveway, in Tow-Away Zones, in load zones, etc. Additionally, motorcycles may not park:
in spaces in front of or behind striped parking spaces (as these spaces typically provide maneuvering room that passenger cars need to enter and exit an adjacent striped space),
along curb bulbs or indentions,
in alleys, or
on the sidewalk.