How does Docker Desktop compute the URL to be used by Open in Browser command?

Which port is shown in Docker Desktop? (Where it says “RUNNING PORT: 81” in my screenshot?)

And what do you see if you repeat my tests with busybox? (My tests executed with the latest Docker Desktop on both an M1 and Intel Mac.)

When clicking the container name, I also see the ports sorted on the container’s port number: