The invention relates to a system for containing medical waste with a bag and a machine for producing said bag. It relates to a reusable, hermetically sealed, metal container for medical waste, with a bag and locks or latches, which prevent the lid from being opened until the waste inside the same has been sterilized by the pressurized steam of an autoclave. It also relates to said plastic bag made up of two or more layers of different physical properties, configured into a single body. Said bag is housed inside the aforementioned hermetically sealed container. It also relates to a machine for producing these bags with a winder, folder and several sealers using heat resistance inserted into conveyer belts.