I wanted to understand why the Cokernel is not a sheafy condition. I found an explanation in Ravi Vakil's homework solutions which I am expanding on here.

§ Core idea

We will show that there will be an exact sequence which is surjective at each stalk, but not globally surjective. So, locally, we wil have trivial cokernel, but globally, we will have non-trivial cokernel.

§ Exponential sheaf sequence

02πiZα:inclOβ:exp()O0 \begin{aligned} 0 \rightarrow 2\pi i \mathbb Z \xrightarrow{\alpha: \texttt{incl}} \mathfrak O \xrightarrow{\beta:exp(\cdot)} \mathfrak O^* \rightarrow 0 \end{aligned}