Localhost not working after docker container has been assigned port

Hi - I am having trouble using jupyer notebooks. My docker is running and assigned to the port “0.0.0.0:8888->8888/tcp”, but when i go to localhost:8888 it does not connect to the site.

I have seen some explanations that I need to use “docker-machine ip default” to point to the correct ip address, however when I run that command I see: “Host does not exist: “default””

I am using docker for Mac.

If it is an issue with confiuring jupyter, how do open/edit the jupyter.config file from within Docker?