fix comma appears at the end of ports definition in local containers