In oxygen molecule, the double bond contains one sigma and one pi bond.
Oxygen atom has six valence electrons. Oxygen molecule has two oxygen atoms. Each O atom shares 2 electrons to form two covalent bonds out of which one is sigma bond and other is pi bond. Sigma bond is formed by axial overlap 2p atomic orbitals of oxygen and pi bond is formed of lateral overlap of 2p atomic orbitals of oxygen. In oxygen molecule, both oxygen atoms have completed their octet.