Dear user,
Docker has to map port 8888 to some port of your host computer, for example the same: 8888.
For this, add these lines to nrp_installer.sh (assuming you have its latest version 1.21):
After line 83, insert:
notebook_port=`eval [ "$container" != "nrp" ] || echo -p 8888:8888`
After line 87, insert:
$notebook_port \
Your start() function should now look like this:
start(){
container=$1
eval "port=\${${container}_port}"
eval "image=\${${container}_image}"
check_port $port
ipvar=$container"_ip"
echo -e "${BLUE}Starting $container container on port $port using image $image${NC}"
iparg=`eval $is_mac || echo --ip=${!ipvar}`
notebook_port=`eval [ "$container" != "nrp" ] || echo -p 8888:8888`
echo "notebook_port = $notebook_port"
$DOCKER_CMD run -itd \
-p $port:$port \
$notebook_port \
--net=nrpnet \
$iparg \
-v nrp_user_data:/home/bbpnrsoa/.opt/nrpStorage \
-v nrp_models:/home/bbpnrsoa/nrp/src/Models \
-v nrp_experiments:/home/bbpnrsoa/nrp/src/Experiments \
--name $container $image
eval setup_$container
echo -e "${GREEN}$container container is now up and running.${NC}"
}
Now, reinstall your nrp (this will reset your Models in the backend container, so in case you changed them, make sure you back them first up)
./nrp_installer.sh install
Check that port 8888 is mapped:
docker port nrp
It should answer:
8080/tcp -> 0.0.0.0:8080
8888/tcp -> 0.0.0.0:8888
Now, open the backend container:
./nrp_installer.sh connect_backend
and in the backend terminal, run the virtual coach notebook server, but change the default ip to 0.0.0.0:
cle-virtual-coach jupyter notebook "--ip=0.0.0.0"
Give the url given in your host computer browser, for example on my computer, it was:
http://localhost:8888/?token=f027e20b23dd04d34ec827c6ff8ee402ccdf4c775d440766
If you have issues with port 8888, try mapping another host port by giving the “-p <other_port>:8888” in line 84 of nrp_installer.sh.
This should work for you.
Best regards
Axel