Guards contained an inmate riot at California State Prison in Sacramento Wednesday, a California Department of Corrections and Rehabilitation spokeswoman said.