Can't connect port to docker container on linux

Hello!

I used to be able to do this on my mac, but since moving to PopOS (a version of Ubuntu) on my new super powerful laptop, it does not work:

docker run -p 8888:8888 jupyter/scipy-notebook:2c80cf3537ca

it then says:

Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=dbacf8f1ef321640a9d073d0e1e03e5fc2ba353a773f9095

So normally I just paste that into my browser and it should open up the jupyter notebook.

However, on my linux machine, it just stays forever loading and says “this site can’t be reached”.

I have tried mapping 1234:8888 and 10000:8888

Am I mapping the ports wrong?
I seem to remember reading somewhere that the ports are a bit different when using linux and docker.
However, its almost impossible to use google to find the solution since almost any page with the word “docker” in it, also has the words “linux” and “ubuntu”.

So here I am!

Please, please can anyone help me! I desperately want to run some data science on my new linux laptop, but cannot even open the damn notebook.