Target Use Case Connect to a jupyter notebook server within a remote docker, and open it in your local browser or VS Code.
Docker (running notebook) → Host → Mac/PC (Running VS Code/browser) Step 1: Connect from docker to host docker side: expose a port (tell docker you want to use this port),and publish it (actually open up the port and map to the port on the host) Notice that you can only expose a port before running the container # port mapping format HOST:CONTAINER docker run --expose=8888 -p 8888:8888 Jupyter notebook: launch the notebook jupyter notebook --ip 0.