A method of sterilizing containers by means of an electron gun, the method comprising the steps of inserting the gun into an opening of the container and of applying electron bombardment, and also the step of orienting the container so that it has its opening directed downwards prior to inserting the gun therein. The invention also provides an installation for implementing the method.