The properties of the generator matrix are given for linear codes over finite commutative chain rings, and the so-called almost-MDS (AMDS) codes are studied.