Improved port_docker_image: added debug, repo auto finding