Fix the retrieving of the port and container numbers