When a docker image X is used as the base image for docker image Y, image Y inherits all of X's labels. That is, image Y has all the labels of X plus any labels Y adds.
Is there any way to prevent this label inheritance from happening, either in the Dockerfile or in the docker build command?