Method and apparatus for sterilizing containers with a sterilization medium. The method involves first introducing a sterilization medium into a container, and then introducing a heated gaseous and/or vaporous activation medium into the container. The activation medium is used to heat and activate the sterilization medium to destroy microorganisms. The temperature of the heated gaseous and/or vaporous activation medium is controlled based on the detected temperature of the container or the wall of the container.