An apparatus for filling containers, has an entrance through which open containers can be introduced into the apparatus, including at least one transport device which conveys the containers along a predefined transport path, and an exit via which the containers can be discharged from the apparatus. The speed at which the transport device conveys the containers is variable, and the apparatus comprises at least one filling device which fills the containers at least partially with a liquid medium on the transport path between the entrance and the exit. The apparatus includes a housing, and arranged in the interior of the housing is at least one sterilization device in the form of a β-radiation unit which sterilizes components of the apparatus.