How can I stop this kknee stiffness when running?

Stretching. Make sure you stretch well before and after you run. Some experts think stretching after a run is more important. Whatever stretching you do before you run do it slowly and deliberately so you do not hurt yourself. Seek help from an podiatrist, athletic trainer, or other professional for more personal advice.