call himself 狗 is a kind of self-mockery. if someone calls himself 单身狗, it means that he is single and he wants to have a girlfriend / boyfriend but because of some reason, he couldn't have.
He want to have but he couldn't, so he makes a self-mockery.