The entropic stochastic resonance (ESR) in a confined system driven by a periodic force as well as dichotomous noise and white noise is investigated. For the case of low frequency and weak amplitude of the periodic force, we obtain the expression of the output signal-to-noise ratio (SNR). Results shows that the SNR is a non-monotonic function of the strengths of the dichotomous noise and the white noise; the SNR varies non-monotonically with an increase of the parameters ε and b of the confined structure. The influence of the correlation rate of the dichotomous noise and the frequency of the periodic force on the SNR is also discussed.