Firstly, note that the operator $D-1$ acts on the left of $f$, that is why its inverse must be applied on the left too, hence $f(x) = (1-D)^{-1}2f(2x) \neq 2f(2x)(1-D)^{-1}$. Also, this kind of approach coming from operational calculus is most suitable for inhomogeneous equations, but it is rarely useful in the homogeneous case. Indeed, you could write an expression such as $(1-D-2S_2)f = 0$, where $S_2(f) := f(2x)$ is a scaling operator, hence $f = (1-D-2S_2)^{-1}0 = 0$, but it cannot produce another solution than the trivial zero solution, since the operator $(1-D-2S_2)^{-1}$ is linear.
Let's highlight that the equation satisfied by $f$, namely $f'(x) + f(x) - 2f(2x) = 0$ (watch out for the sign error), belongs to the family of pantograph delay differential equations. You could get rid of the middle term with the help of an integrating factor by setting $f(x) = g(x)e^{-x}$, hence
$$
\frac{\mathrm{d}g(x)}{g(2x)} = 2e^{-x}\mathrm{d}x
$$
after seperation of the variables. You can find here a few basic things about pantograph equations. They are intimately related to the deformed exponential function $\operatorname{Exp}_\alpha$, defined as the unique solution to the problem $y'(x) = y(\alpha x)$, with $y(0) = 1$, and described by the following series :
$$
\operatorname{Exp}_\alpha(x) = \sum_{n\ge0} \alpha^{n(n-1)/2} \frac{x^n}{n!}
$$
Then, the left-hand side of the above differential equation becomes $\operatorname{Log}_2(g)$ after integration, where $\operatorname{Log}_2 = \operatorname{Exp}_2^{-1}$ is the associated deformed logarithm, leading to $g(x) = \operatorname{Exp}_2(C-2e^{-x})$, where $C$ is a constant of integration, hence $f(x) = e^{-x}\operatorname{Exp}_2(C-2e^{-x})$ in the end. Finally, the initial condition $f(0) = 0$ is imposed by your original integral equation, so that the final solution is given by
$$
f(x) = e^{-x} \sum_k \operatorname{Exp}_2(C_k - 2e^{-x})
$$
by superposition, where the constants $C_k$ are solutions to the equation $\operatorname{Exp}_2(C_k-2) = 0$. The said constants are thus related to the zeroes of the deformed exponential $\operatorname{Exp}_\alpha$. The latter are known to be negative when $0 < \alpha < 1$ and complex when $\alpha > 1$. Consequently, in the case of a real-valued $f$, the zero function might be the only solution, but I am not sufficiently knowledgeable about this topic in order to ensure such a statement.