Dynamics of a fluid inside a precessing cylinder