A weapons locker is a storage area for firearms aboard Federation starships, shuttlecrafts, and outposts. They are typically accessed through a simple touch interface or voice command to authenticate authorized access by Starfleet personnel.
Depending on the purpose and size of a weapons locker, it can store phasers, phaser rifles, portable weapons containers, and other standard Starfleet personnel equipment. Phaser rifles are regularly stored in with the muzzle facing upwards for ease of retrieval, and phasers are placed in a manner in order to optimize storage space. (Star Trek: First Contact; Star Trek VI: The Undiscovered Country)
Although most weapons lockers were placed in strategic locations such as in armories, near transporter rooms, shuttlebays, or security offices, certain starships, such as the Constitution-class USS Enterprise-A, had a weapons locker in the kitchen. (Star Trek VI: The Undiscovered Country)
In 2369, Tosk tampered with an access terminal in a corridor on Deep Space 9 in an attempt to access a weapons locker, located in the habitat ring, level five, section three. (DS9: "Captive Pursuit") Chief Miles O'Brien and Major Kira Nerys also took advantage of similar weapons lockers aboard Deep Space 9. (DS9: "Hard Time", "Shattered Mirror")
For the weapons lockers seen on Star Trek: Deep Space Nine, real-life containers were used but were modified so that it was not visible on screen that they had previously served another function. In "Hard Time", however, Chief O'Brien opens a locker and some letters can be seen on the inside of the lid; those letters were not made unreadable. On the screenshot to the right (turned 180 degrees and mirrored), the words "Action Packer" are legible. In real life, "Action Packer" is a line of storage containers by Rubbermaid.