Let $\mathcal{A}$ be the two-dimensional Lie algebra over a field $k$ with basis $\{x,y\}$ and relation $[x,y] = y$. Let $\mathcal{I}$ be the ideal of $\mathcal{A}$ spanned by $y$. Let $D' : \mathcal{A} / \mathcal{I} \to \mathcal{A}/\mathcal{I}$ be the $k$-linear map that sends the image $\overline{x}$ of $x$ in $\mathcal{A}/\mathcal{I}$ to $\overline{x}$. Since $\mathcal{A} / \mathcal{I}$ is abelian, this is a derivation. Now if $D$ is a derivation of $\mathcal{A}$ that lifts $D'$, then $D(x) = x + ay$ for some $a \in k$, and $D(y) = b y$ for some $b \in k$ because $D(y) = D([x,y]) = [x,D(y)] + [D(x),y]$ is a sum of commutators in $\mathcal{A}$, and as such must be an element of $\mathcal{I}$. Now
$$by = D(y) = D([x,y]) = [x,D(y)] + [D(x),y] = [x, by] + [x + ay,y] = (b + 1)y$$
forces $y = 0$, a contradiction. So $D$ does not exist.
There is probably also a counterexample if $\mathcal{A}$ is only assumed to be a commutative algebra.
In the positive direction, if $\mathcal{A}$ is a commutative $k$-algebra such that the Kahler differentials $\Omega_{\mathcal{A}/k}$ is a free $\mathcal{A}$-module (for example, if $\mathcal{A}$ is a polynomial algebra in finitely many variables over $k$), then you can always lift $D'$.