When I did week 1 exercise, I got the connection error as the image below.
I used WSL 2 environment with docker. I successfully installed image and ran container of docker hub. But when I ran this line of code I got a connection error and I checked that the connection was still normal.
Sorry cuongvo
just now I have realized that you are trying to run the docker from windows, not from linux.
I guess that my advice is not helpful.
Let me check if I can run the Docker desktop and WSL2.
So far I have been able to setup the Docker desktop and WSL. Now I’m facing a problem when importing cvlib, but this is before the problem you have.
In the meantime can you check that pip install -r requirements.txt
worked fine in your Linux environment?
Regards
I have switched to Ubuntu server and run successfully the code with docker engine.
There is no connection error when I run the code.
I strongly believe that the issue is coming from the network connection between WSL2 and Docker image.
But I’m wondering how to fix this issue on WSL2.
Regards.
Can you share the ‘WSL INTEGRATION’ window?
When you run the ubuntu 18.04 docker image you should have access to a shell.
From there you can use the ping command:
$ ping 8.8.8.8
ping 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=115 time=28.7 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=115 time=27.2 ms
Ok, I understand
before running the docker image, (docker run -it --rm -p 8888:8888 -p 8000:8000 --mount type=bind,source="$(pwd)",target=/home/jovyan/work deeplearningai/mlepc1w1-ugl:jupyternb)
please run
$ ping 8.8.8.8
we need to understand if Ubuntu 18.04 has internet access
So your ubuntu-18.04 has internet access.
Anyway when you run the docker image it doesn’t.
Please can you show all the messages shown when you run the docker image?
From the previous windows I can see only few traces