I’ve fruited apricots, sweet cherries, nectarines, and pluots in pots as small as 7 gallon but mostly 20-30 gal. Rootstock doesn’t matter too much the pot keeps them small.
The main issue is that after about 2-3 crops the tree loses vigor and gets root bound so needs up potting and major pruning to re invigorate the tree. Fruit size is always smaller than in ground. But fruit quality is good.