Nonlinear dynamics of a confined buoyant flow