We study finite temperature properties of four dimensional QCD-like gauge theories in the gauge theory/gravity duality picture. The gravity dual contains two deformed 5d AdS metrics, with and without a black hole, and a dilaton. We study the thermodynamics of the 4d boundary theory and constrain the two metrics so that they correspond to a high and a low temperature phase separated by a first order phase transition. The equation of state has the standard form for the pressure of a strongly coupled fluid modified by a vacuum energy, a bag constant. We determine the parameters of the deformation by using QCD results for $T_c$ and the hadron spectrum. With these parameters, we show that the phase transition in the 4d boundary theory and the 5d bulk Hawking-Page transition agree. We probe the dynamics of the two phases by computing the quark-antiquark free energy in them and confirm that the transition corresponds to confinement-deconfinement transition.