Truman believed in the Domino Theory which meant that if one country fail to Communism, the others would soon fall. So it was better to try to contain Communism first at China (which failed), and then at Korea (successful) and Vietnam (failed). There were other ways America and the USSR tried to get countries to be on their sides
hope this helps
send me a message if you want more info