Magnetic Confinement, Equilibrium States, and Instabilities