It would impossible for a dachshund to get into a dumpster.
Well I Googled for “dachshund jump” and one person is reporting 2’8”. (But it was a corgi mix.)
Not directly from the ground to the top of the dumpster, no, but maybe if other objects were positioned such that the dachshund could use them like steps, I still think possible.
Though I wouldn’t put it below some mean person to have just dumped (and snatched) the pooch.