Some 10,000 troops served time in military prison in 2018, most for minor offenses and the majority from poor backgrounds -- and that's better than in the past