It would be much shorter in these circumstances. Your link is talking about 400,000 ton tanker ships. Container ships like the Ever Given are closer to 200,000 tons. And the cruising speed of a container ship is around 24kts, though I think they run slower than that nowadays to conserve fuel. The speed limit in the Suez Canal is nominally 8kts, but the Ever Glued was reportedly going 13kts when it ran aground. I would guess that that isn't unusual. With half the speed and half the mass, the stopping distance would probably be more like half a kilometer.