These noises generally occur in the water pipes. The force of incoming water can cause the pipes to rattle as the dishwasher water valve closes. This effect is known as “water hammer” and is a household plumbing issue. Also, check to see whether the hoses at the back of the appliance are banging against it.
If the sound is too loud or if you think damage is being caused to your walls or water pipes, seek the help of a qualified plumber.