The discrete Korn inequality is proved for general nonconforming finite element spaces defined over triangulations consisting of triangles and/or quadrilaterals and satisfying the patch test of order 2.