By this metaphor, Thoreau means that the army is only one part of the government which, by this metaphor, is obviously greater that its component parts. Alas, in the larger context of the fragment, Thoreau is also making the point that the army follows whatever government is in power, so that if the government is corrupt or does not conform to the wishes of the people, neither will its army.