Two noises to separate: the one that comes from the pipe, and the one that comes from the ice.
Water hammer
A tap closes, the moving water stops abruptly, and the shock wave hits the nearest restraint. One hard knock, at the pipe, right after a fixture shuts.
On a hillside street the runs are longer and the pressure is higher at the bottom of the slope, so the same closure carries more energy.
Fix: arrestor chambers or an arrester at the fixture group, properly anchored pipe, and a check that the pressure regulator is doing its job.
Thermal movement
Cold pipework expands when hot water arrives. In a house that has been at 20 °F, the first hot draw produces clicks and taps as the run grows against its clips.
Fix: correct clipping and allowance for movement. Left alone, it wears joints.
The freeze rattle
A partly frozen line makes a distinctive knocking as flow starts and stops. If the pipes run through an unheated crawlspace or against an outside wall, treat it as a warning: isolate, warm gently, and improve the protection before the next cold night.
The tank's own noises
A relief valve chattering, a check valve snapping shut, and a gas control cycling all produce sounds that get blamed on the tank. Listen for where it comes from before ordering parts.
What not to do
Clamp the pipe tighter and leave the cause. The energy goes somewhere else, usually into a joint that cannot take it.
What to have ready
Timing, trigger, fuel, cold history.