Why there are two icons in the Dock?

Docker Desktop Version 4.7.0 (77141)
macOS 12.3.1
Apple Silicone

Is there anyway to stop this?

Does this always happen or did Docker just restart?

This often happens to apps that have just been restarted; somehow Dock does not match the running one (the one with the dot underneath it, on the right) witch the one that is in the Dock permanently (the one on the left).

If Docker just restarted it may resolve itself next time (or quit Docker, and click the one icon that is left in the Dock then). If it always happens, then for the left one choose Options, Remove from Dock, and for the other one chose options Options, Keep in Dock?

It happens indeed when restarting. Well, I guess I’ll ignore it.
Thanks for your reply