Docker Community Forums

Share and learn in the Docker community.

How can I run Jupyter Notebook In two containers with same port

docker
swarm
amazonwebservices
dockercloud
dockerhub

(Sathyanarayana99) #1

I have Installed Jupyter Notebook in two containers. Now try to run Jupyter Notebook with following commands error will occur

docker run --name container1 -p 8888:8888 Image

docker run --name container2 -p 8888:8888 Image
this gives an error like port already in use.
let me know how to access same port Jupyter on the web page with the different folder structures


(Mano Marks) #2

What is your expected behavior? If someone were to visit port 8888, which one would it go to?