@pslam,
The easiest fix for this kind of knocking is to first turn off your main supply valve. Now, flush the lines by opening all of the faucets and flushing your toilets. Water can still leave your home through drainage pipes and this will ensure all of the supply lines are fully empty.
Once the lines are cleared, feel free to turn your main valve back on. It is as simple as that.