( CNN ) -- The space shuttle Discovery safely docked at the international space station on Tuesday , a welcome smooth maneuver during a mission that was delayed by a gas leak and threatened by hurtling chunks of space junk .