Other people said some of this but I'm going to put it here for easy grokking:
- Use old eggs if you can.
- Pinch of salt in the water helps heal cracks in the egg shells so they don't always spill out into the water.
- Put cold eggs directly into boiling water. This means that you should make sure you achieve a rapid boil before putting eggs in.
- Put boiled eggs directly into cold water, either by pouring cold water on them or by moving them into an ice bath.
- Smack and roll the eggs on the counter, then peel.
I boil eggs every day for my family and this has been a tried and true method for us. It's solved all my egg peeling sorrows.