The present invention relates to a method for filling a container with a dairy product having a viscosity comprised between 1400 and 3800 mPa·s comprising the steps of: (a) filling the container with the dairy product by means of a dispenser equipped with a nozzle comprising at least one opening, at a flow rate by surface of the nozzle opening(s) between 0.5 and 1.2 kg/(h×mm2) and at a temperature comprised between 4 and 30° C., and (b) if the temperature of the dairy product in step (a) is above 10° C., cooling the dairy product in the container to a temperature comprised between 2 and 10° C.