Thanks for your query.
Your child is having vomiting which could be due to gastritis
and settles in few days.
Maintain his hydration.
Give anti emetic like domperidone
as per dosage three times a day.
Give lemon water,coconut water,curd,rice porridge so as to maintain hydration and nutrition.
Avoid all kind of fried and spicy food.
Watch for features of dehydration
In case symptoms persist get him evaluated by pediatrician
Wishing your child good health.