I've been knitting from a cake of unruly sock yarn. It kept wanting to bounce onto the floor and roll away.
The cats were encouraging the behavior.
I've seen those specialty jars with the hole in the lid to hold yarn. And those cute little silk bags to keep it pristine and untangled in chic style.
But I'm cheap.
An onion bag works great.