For context on Israel-Iran, here's a list of cases where countries considered or used military force to stop nuclear proliferation in peacetime. It's from my new @cambup-polsci.cambridge.org book Influence Without Arms. Chapter 6 is devoted to explaining why preventive strikes happen.