Posse commitatus does not apply.
DC is a federal district.
The section of the Constitution that sets up the District also sets up military bases.