MicrosoftDocs / mslearn-python-products

MSLearn sample code
Creative Commons Attribution 4.0 International
29 stars 344 forks source link

Command failure when opening project in container #2

Open IoT-Kid opened 3 years ago

IoT-Kid commented 3 years ago

I have followed the learning module here and I get the following outcome when trying to open the project in a container:

Command failed: docker run --sig-proxy=false -a STDOUT -a STDERR --mount type=bind,source=c:\directory to folder\mslearn-python-products,target=/workspaces/mslearn-python-products,consistency=cached --mount type=volume,src=vscode,dst=/vscode -l vsch.local.folder=c:\directory to folder\mslearn-python-products -l vsch.quality=stable -l vsch.remote.devPort=0 --entrypoint /bin/sh vsc-mslearn-python-products-05e09896b111b72fedda0caeeec92b28 -c echo Container started ; trap "exit 0" 15; while sleep 1 & wait $!; do :; done

Any ideas how this could be resolved?

burkeholland commented 3 years ago

Sorry for the delay in response. Can you check and make sure that you've allowed Docker access to this specific folder?

  1. Right-click on the Docker task bar item, select Settings > Resources > File Sharing and add the location where you cloned the sample project in the previous step. This option is not available if you have enabled the WSL 2 back-end.

image