From 1837 to 1838 Dockstader was chosen as a delegate to the county and state Whig conventions. It was because of this popularity that he was elected mayor in 1840.
Between 1837 and 1838, Dockstader served as a delegate to both county and state Whig gatherings. His widespread support resulted in his appointment as mayor in 1840.