Renormalized said:
The container for the black body radiation does not have to be metal. The "standing waves" criterion comes from the requirement for thermal equilibrium.
True, the formal operations in the derivation of the Rayleigh-Jeans formula seem to work even if the cuboid is made of wood or has entirely fictive boundary and thus no condition is imposed on the values of the field on the walls; the assumption that the average energy due to one Fourier component is the same as average energy of ordinary harmonic oscillator - ##k_B T## - is sufficient.
However, perfectly reflecting cavity is considered in discussions of equilibrium radiation for a different, older reason: the Rayleigh-Jeans calculation addresses
equilibrium radiation: existence of equilibrium requires that the system radiation + matter does not lose energy systematically through the (real of fictive) walls. Perfect conductor is able to prevent escape of EM energy, since (I believe) the Poynting vector has to have zero component normal to the walls. This way, matter can achieve thermodynamic equilibrium with radiation inside the cavity.
In a sense, perfect conductor is like adiabatic wall in thermodynamics - non-existent, but very useful in theory.
Of course, in experiments attempting to realize equilibrium radiation perfect conductors are not available, so people use next best thing - metals. Although metallic wall is not a perfect conductor, for long enough waves it is very close to being one. And even for high frequencies, it is best we can do.
By the way, this means that part of the mismatch between the Rayleigh-Jeans formula and experiment is due to the fact that we cannot really prepare equilibrium radiation for ##all## frequencies - frequencies high enough go right through the walls, since they are not made of perfect conductor.
Perhaps there are other reasons for why metallic cavity is assumed in the calculations of Rayleigh-Jeans type - if you know some, please let us know.