Means for locking the filling head in a given position once engaged by a container