I often need storage containers to hold small parts and hardware in my shop. I decided to make my own containers by using clear plastic shipping tubes that I had around my shop. Manufacturers often use these tubes to ship long items, like T-track. You could also use inexpensive safety sleeves made for long fluorescent light bulbs. The tubes can easily be cut to any size, up to four feet long.
I make the caps for the containers at the lathe. An O-ring fits in a groove cut in the cap to provide a friction fit in the tube.