A hyphen is used to join 2 spelled-out units of measure.
A hyphen is used to join a unit of measure and the number associated with it when the combination is used as an adjective. (See Temporary Compounds in 8.3.1, Punctuation, Hyphens and Dashes, Hyphen.)
an 8-L container
a 10-mm strip