Diquarks in QCD with a linear confinement potential