C4W1 Lab2 TFS Docker

I am using wsl2 and the windows PowerShell.
Regardless from where (e.g. folder) I was running the command:

docker run --rm -p 8501:8501
–mount type=bind,
-e MODEL_NAME=half_plus_two -t tensorflow/serving “&”
(Quotation needed for wsl2)

I always got the following ERROR:

docker: Error response from daemon: invalid mount config for type “bind”: bind source path does not exist: /tmp/tfserving/serving/tensorflow_serving/servables/tensorflow/testdata/saved_model_half_plus_two_cpu.

Somehow, even though the folder exists Docker doesn’t find it

Hello Peter,

The docker is not able find it is bind source path probably because it is not in the place it is looking for.

You will have to modify the source path to match the expected format in that OS. Please see the Windows related troubleshooting topics.

Check the issue with the path conversion.


Hi @Peter_Grabner,

Please try running the commands on the WSL2 shell instead of the Powershell terminal. When you make a folder via Powershell, it stores the folder in your Windows machine instead of Linux machine (which is where docker is trying to bind to).

From the Windows search bar, type wsl. Then click open and retry the assignment from the beginning. Let me know if it resolve your problem.

1 Like