We've all heard the English idiom "to kick the bucket," which means "to die." There are various theories about where the phrase originated from, the Oxford English Dictionary mentioning that the Old French word buquet was a beam on which animals were hung by the feet after being slaughtered, hence "kicking the bucket." The closest to this idiom in German is probably ins Gras beißen, or literally "to bite into the grass," which itself is a close parallel to the English idiom "to bite the dust," again meaning "to die."
There is, however, a German idiom relating to the word "bucket" with negative connotations:
Dann ist das ganze Lied im Eimer.
Then the whole song is in the bucket [idiom, ruined].Play Caption
Wenn Thorsten beim HSV nicht genommen wird,
If Thorsten is not accepted at the HSV [Hamburg Sport Association],
ist seine Karriere im Eimer.
his career will be in the bucket [idiom, ruined].
Captions 18-19, Die Pfefferkörner - EigentorPlay Caption
If someone or a situation is im Eimer, it means he or she or the situation is completely ruined. According to the Duden Dictionary, Eimer in this case is alluding to der Abfalleimer, or trash can. Der Eimer is also German slang for an old ship or an old car. This has English parallels in the slang expression "rust bucket" for an old boat or an old car.
Look for further examples of Eimer on Yabla German and see more examples of how this word is used in a real world context.