I think there is camping but I don't know about truck or RV spots at: Candlestick Point SRA in San Francisco.
https://www.parks.ca.gov/?page_id=519
If they have camp sites other than walk in it would be the best around SF.
There is an RV park in Pacifica, which is about 10 minutes south of SF on the Coast.
There are State Parks south of SF in the La Honda Area and Big Basin.
At the north end side of the Golden Gate Bridge is a vista point lot. You can only get to it from the Golden Gate Bridge. I have heard of people parking over night in the lot I don't know if I'd do it, but it could work in a pinch. Stay as far away from the rest rooms if possible.
Check with Calif. State Parks because some parks offer 'en-route' camping; you must be fully self contained and they charge a fee to overnight in a parking lot.
Mount Tam State Park may have camp sites and about an hour from SF is Samuel P Taylor State Park in Marin. Out near Point Reyes there is an Rv park (if that's your thing) in the Town of Olema.
Bodega Bay has camping at Doran Beach County Park and there are State campgrounds a little north of Town.
Good Luck.
Edited by 5outta6, 17 October 2019 - 11:22 PM.