Narrated Jabir: Allah's Apostle forbade the use of (certain) containers, but the Ansar said, "We cannot dispense with them." The Prophet then said, "If so, then use them."
Hadith Referenceصحيح البخاري / كتاب الأشربة / 5592
Hadith Gradingمحدثین:أحاديث صحيح البخاريّ كلّها صحيحة
Hadith Commentary: It is understood that the vessels in which wine was made were also prohibited from being used, and making nabidh (fermented drink) in them was also forbidden, so that not even a trace of wine would remain.
Source: Sahih Bukhari: Commentary by Maulana Dawood Raz, Page: 5592