This is my idea: let $\{z_n: n\geq1\}$ be any countable dense subset of $\mathbb D$. For each $n$ let $g_n$ be a holomorphic function from $\mathbb D$ into $\mathbb D$ such that $g_n(z_k)=f(z_k)$ for $k=1,\dots,n$. Then the sequence $(g_n)_{n\geq1}$ is uniformly bounded, so by Montel's theorem there is a holomorphic function $h:\mathbb D\to\mathbb C$ and a subsequence $(g_{n_k})_{k\geq1}$ such that $g_{n_k}\xrightarrow{k\to\infty}h$ uniformly on compact subsets of $\mathbb D$, and $h$ is holomorphic. If $m\geq1$ then for all $k$ such that $n_k>m$ we have $g_{n_k}(z_m)=f(z_m)$. Taking $k\to\infty$ we obtain $h(z_m)=f(z_m)$, and so $h$ and $f$ agree on a dense subset of $\mathbb D$.
Let $z_0\in\mathbb D$ such that $z_0\ne z_m$ for all $m\geq1$. We repeat the previous construction, now including $z_0$ into the dense subset of $\mathbb D$. We obtain a holomorphic function $\tilde h$ defined on $\mathbb D$ such that $\tilde h(z_m)=h(z_m)=f(z_m)$ for all $m\geq1$, and $\tilde h(z_0)=f(z_0)$. By continuity of both $h$ and $\tilde h$ we conclude that $h=\tilde h$, and so $h(z_0)=\tilde h(z_0)=f(z_0)$, which shows that $h=f$. Am I wrong?