Docker: don't check port if there's no port to check.