Here''s a great story from regular... Poopie Suits ...
The flooding occurs by sealable "gates", and the emptying occurs with giant pumps to draw down the basin, like pulling the drain plug on a bathtub. The more common fixed dry dock is a permanent port facility. With the entry gates opened, the basin fills to the same water level as the harbor.