Shooting fish in a barrel

Where did the phrase 'shooting fish in a barrel' come from?

Not sure I can trace the actual origin, but it means that a particular endeavor is especially easy, as compared to shooting at (and hitting) fish in such a confined space as a barrel.