We prove a blow-up criterion in terms of the upper bound of the density for the strong solution to 2D compressible Navier-Stokes equations in a bounded domain. The initial vacuum is allowed. The proof is based on the new a priori estimate for 2D compressible Navier-Stokes equations and a logarithmic estimate for Lamé system.