Containers (Pots) vs In ground
It does not matter, either has to be controlled, modified, amended, etc. A fig will not grow in a pot, it grows in a "growing media" such as soil, dirt, earth, a mixture, etc. contained in a pot. There are advantages and disadvantages to each. I keep most of my 200+ fig trees in pots because the dirt, earth, soil on my property is not a good envelope for fig trees in that it is a type of clay that holds moisture and therefore kills fig trees sooner or later. If you dig a hole in my yard to plant a tree you are effectively planting it in a container as after 2 years, the roots are still contained in the original hole, unable to penetrate the walls of the hole and that hole is like a bucket holding water.
If you lived on the North side of Austin, West of I-35 you would probably want to grow in containers because the ground is so rocky it is almost impossible to dig holes without power equipment. East of I-35 is beautiful black dirt farming area.
In summary, there are advantages and disadvantages to both, there is not a single answer.