Bonding between non-polar carbon dioxide molecules
 

The animation above shows how the carbon dioxide molecules interact. Since only one charge is exposed it is very difficult to undergo electrostatic attraction and yet some form of attraction exists. An ability for carbon dioxide to form solids is evidence that a force of attraction exists, even if it is extremely weak.