The ornamental design for a dispensingattachment to a container, as shown and described.
FIG. 1 is a front elevated view of the dispensing attachment to a container;
FIG. 2 is a front view of the dispensing attachment to a container shown in FIG. 1, in a retracted position;
FIG. 3 is a front view of the dispensing attachment to a container shown in FIG. 1, in an extended position;
FIG. 4 is an exploded view of the dispensing attachment to a container shown in FIG. 1;
FIG. 5 is another view of the dispensing attachment to a container shown in FIG. 4, in a partially opened configuration;
FIG. 6 is a front elevated view of the dispensing attachment to a container shown in a retracted position in FIG. 2, and showing the dispensing attachment to a container attached to a bottle; and,
FIG. 7 is a front elevated view of the dispensing attachment to a container shown in an extended position in FIG. 3, and showing the dispensing attachment to a container attached to a bottle.
The broken lines in the drawing depict environmental subject matter only and form no part of the claimed design.