The present invention relates to a method, a device for implementing the method, and a flask obtained by said method for passivating the inner wall of a glass container capable of containing a pharmaceutical grade material. To treat or inhibit the inner surface of the container, said inner surface of the container is treated via ion exchange between the container and an aqueous extraction liquid such that the measured hydrolytic resistance of said surface is divided by at least two.