In chemistry labs the concentrated acids are kept in clear glass bottles with ground glass stoppers. That makes them easy to open and close. For storage nitric acid is usually stored in brown glass bottles.
Nitric acid will attack the cap if it is not made of a material that is resistant to attack. High density polypropylene, aka Nalgene (R), is quite stable under exposure to nitric acid. You can also coat the cap with paraffin wax as paraffin has a long history of being used to contain strong acids.
Just imagine the difficulty the 18th century gunmaker had trying to transport and store nitric acid!
By the way, nitric acid is quite volatile and will escape a storage vessel if not tightly sealed and corrode everything in sight.
Best Regards,
John Cholin