Dogs are characterized by loyalty to their owners and cruelty to their enemies. In psychoanalytic psychology, it is often used to symbolize morality, self-discipline, self-demand and discipline or superego.
The dog in the dream is used to prevent thieves. The so-called thieves are those desires and thoughts that are not in line with self-morality. Dogs are ordinary people.