Sounds like the starting symptoms of parvo.
Take the dog to the vet ASAP if it continues or if there are any other symptoms. Until then no food or water. Please don't wait too long.