Green’s Dictionary of Slang

cocky n.3

[SE colloq. cocky, arrogant]

an arrogant person, a show-off.

[US]S. Bellow Augie March (1996) 172: What would they do with this cocky in the workhouse?