Second quarter best since 2010, as container shipping sees $2.7bn profit