If you set up a "black box" (box you can't see into) containing some atoms, the total mass of the box and its contents will be equal to the sum of the mass of the box and mass of the individual atoms in the box. If you heat the box to a high temperature (so the atoms are moving around at high speed in the box, and thus have high energy), then the total mass of the box and its contents will be larger than if the temperature of the box is lower. Why? Because, the higher energy atoms contribute more mass to the total mass than before the box was heated. So, if you try to push on the box, you will discover that its inertia will be larger (it won't accelerate as quickly).
In a practical setup of this box containing gas, the actual change in inertia of the box (due to heating it) will be small. But, in principle, if the atoms are made to move at speeds nearing the speed of light, the mass of the box can be made very large --- even approaching infinity.