My method has never failed me.
Pour a tablespoon of salt into the pan, put in the eggs, put in several ice cubes, then cover the eggs with cold water.
When the water comes to a boil, set the timer for ten minutes.
Then, pour out the hot water and rinse with cold tap water until you can handle the eggs without burning you.
Crack the shells starting at the pointy end and they will peel easily.