Earth Spacedock
Earth Spacedock was a gigantic Starfleet facility orbiting Earth. It was built prior to 2285 and is able to harbor numerous starships inside its upper, mushroom-formed, section.
In 2285, the USS Enterprise returned to Spacedock after ending Khan's plan to kill Admiral James T. Kirk for revenge. There, the Enterprise was to be decommissioned. Kirk, with the help of Captain Scott, Commander Uhura, Commander Hikaru Sulu and Commander Pavel Chekov, stole the Enterprise to rescue Spock's body from the Genesis Planet. The USS Excelsior attempted to give chase, but had been sabotaged by Captain Scott, and "stalled" when it attempted to jump to transwarp. (Star Trek III: The Search for Spock)
In 2286, an unknown probe disabled the entire starbase when the probe reached Earth orbit. The shutdown happened before any vessels within, including the Excelsior, could be launched, resulting in the shutdown of all vessels inside. When Kirk and his crew had resolved the crisis, he was demoted to captain, but was offered command of the USS Enterprise-A, which was waiting at Earth Spacedock. (Star Trek IV: The Voyage Home)
The Enterprise-A remained at Spacedock while Captain Scott worked to resolve design flaws made apparent after the ship's maiden voyage. (Star Trek V: The Final Frontier)
The Enterprise-A was kept at Spacedock prior to its ill-fated trip to escort Klingon Chancellor Gorkon to a peace conference on Earth in 2293. Kirk ordered an undocking at impulse speed, despite the fact that regulations specified thrusters only. While Lieutenant Valeris, the ship's helmsman, initially questioned the captain's order, she successfully performed the departure and later admitted she "always wanted to try that."
Following the Khitomer Conference, the Enterprise-A was to return to Spacedock to be decommissioned. (Star Trek VI: The Undiscovered Country)
In an alternate timeline, Harry Kim and Tom Paris stole the runabout USS Yellowstone from Spacedock. (VOY: "Non Sequitur")