C1W1: docker run

@Simon_Seitz
If you still want to try Docker. Please run its command on Powershell only because Docker Bind Mount feature don’t work on command prompt (cmd) Please follow these steps:

  1. Clone the repo with Git Bash
  2. Install Docker and WSL
  3. Open PowerShell and go to the repo directory
cd MLEP-public/course1/week1-ungraded-lab
  1. Run docker command
docker pull deeplearningai/mlepc1w1-ugl:jupyternb
docker run -it --rm -p 8888:8888 -p 8000:8000 --mount type=bind,source="$(pwd)",target=/home/jovyan/work deeplearningai/mlepc1w1-ugl:jupyternb

Now you should see a container in Docker for Desktop and it should be mounted correctly in your file directory

Hello @Th_o_Vy_Le_Nguy_n,

it helped…
Downloading the repo via “git clone GitHub - https-deeplearning-ai/machine-learning-engineering-for-production-public: Public repo for DeepLearning.AI MLEP Specialization” ls looks like this
“$ ls
README.md assets/ client.ipynb images/ mac_m1.md requirements.txt server.ipynb”

and typing in jupyter lab now it looks like this:

.

What to do now?

BR,
Simon

Hello @Th_o_Vy_Le_Nguy_n,

“PS C:\WINDOWS\system32> cd C:\Users\xyz\Documents\coursera\machine-learning-engineering-for-production-public\course1\week1-ungraded-lab
PS C:\Users\xyz\Documents\coursera\machine-learning-engineering-for-production-public\course1\week1-ungraded-lab> docker pull deeplearningai/mlepc1w1-ugl:jupyternb
error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Post “http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/create?fromImage=deeplearningai%2Fmlepc1w1-ugl&tag=jupyternb”: open //./pipe/docker_engine: The system cannot find the file specified.
PS C:\Users\xyz\Documents\coursera\machine-learning-engineering-for-production-public\course1\week1-ungraded-lab> docker run -it --rm -p 8888:8888 -p 8000:8000 --mount type=bind,source=”$(pwd)“,target=/home/jovyan/work deeplearningai/mlepc1w1-ugl:jupyternb
docker: error during connect: In the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect.: Post “http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/create”: open //./pipe/docker_engine: The system cannot find the file specified.
See ‘docker run --help’.
PS C:\Users\xyz\Documents\coursera\machine-learning-engineering-for-production-public\course1\week1-ungraded-lab>”

Looking for "“http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/containers/create” or “docker run --help” gave no answer did not help.

Br,
Simon

Good work @Simon_Seitz please now open the server.ipynb and begin your ungraded lab.

It’s the last file in the screenshot you’ve sent

Hi @Simon_Seitz ,

  • First, verify that Docker Desktop application is running. If not, launch it: that will run the docker daemon (just wait few minutes).

  • Then, if the error still persist, you can try to switch Docker daemon type, as explained below:

    1. Open Powershell as administrator
    2. Launch command:

& ‘C:\Program Files\Docker\Docker\DockerCli.exe’ -SwitchDaemon

Let me know if it resolves the issue

it works, thanks a lot

Welcome, Feel free to ask any other question if you get another error during the lab!

thanks a lot to @Isaak_Kamau and @Th_o_Vy_Le_Nguy_n