French ocean carrier CMA CGM and APM Terminals, the Danish port operating company, traded stakes in container terminals in Dunkirk, France, and Mobile, Ala.