It sounds like bile. This can happen if the dog has not eaten lately or has acid reflux. If it happens regularly or your pet stops eating, you should contact your veterinarian.