Only return published ports for docker port

Fixes #2716