spotty-cloud / spotty

Training deep learning models on AWS and GCP instances
https://spotty.cloud
MIT License
493 stars 43 forks source link

Failed to start container on windows 10 #131

Open FX1688 opened 1 month ago

FX1688 commented 1 month ago

I am trying to run spotty container in my python virtual environment on windows 10, I have successfully set it up and able to run in Ubuntu, see the spotty.yaml attached. When I tried to do this on Windows 10, I keep getting the following error message: There is no reference to any Ubuntu directory. and --debug option (python spotty start -d -C) doesn't seem to produce any more details. Aby assistance is appreciated.

file: .\docker\Dockerfile

The system cannot find the path specified. Error:

Failed to start the container

FX1688 commented 1 month ago

It turns out to be the following file: docker/Dockerfile is not compatible in windows. Anyway if I try to change the path to windows .\docker\Dockerfile, it failed to pass validation: "Invalid name for a Dockerfile" was thrown as it didnt like backslash, only accepts forward slash. So I created a windows sharing, and put in UNC path (//somepath/docker/Dockerfile) to the dockerfile, but the system is expecting the docker file to a relative path to the project. So I just place the dockerfile in the project root folder, and specify file: Dockerfile in the spotty.yml, it passes validation, but then I ended up with the The system cannot find the path specified error again. @apls777 , so please advise if the source code can be changed to make this work in windows?