Your dog will be fine if he just ate a few goldfish crackers. But some goldfish food brands contain Onions and Garlic which can harm your dog in large amounts. Also, goldfish food may contain chemicals and hormones that enhance the color of goldfish. These hormones/chemicals are harmful to your dog.