President Barack Obama said Monday the US goal was not to contain or counter China, hours after the United States signed a new defence agreement with the Philippines.