Thanks for your response. Turned out to be an acidic stomach. Once he had a full tummy, no more yellow bile. Vet advised pepcid for future acidic stomach.
Your dog should be seen by a vet immediately. I don't know your dog's vaccine status, but it could be Parvovirus. Other possibilities include, foreign body ingestion, pancreatitis, and more.