Before I stop or mask a unit I want to know what else pulls it in.
systemctl list-dependencies --reverse docker.service
systemctl list-dependencies --all multi-user.target
--reverse lists the units that depend on the given unit, such as targets that want it. Without it the command shows what the unit itself needs. By default only targets are expanded, and --all recurses into every unit type. Green and red dots show whether each unit is active. An empty list does not mean the unit is unused, because a program can still talk to it directly, so check before you stop or mask it.
Further reading: systemctl manual page