spotty-cloud / spotty

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

Problem with setting up "Caching Docker Image on an EBS Volume" #78

Closed qraleq closed 3 years ago

qraleq commented 4 years ago

Hi, I set up everything according to the instructions related to "Caching Docker Image on an EBS Volume", and everything worked perfectly in the previous version of Spotty, but now in 1.3.0 I have problems starting an instance using the same settings.

Spotty throws the following error: Validation error: The "mountDir" of one of the volumes must be a prefix for the "dockerDataRoot" path.

Can you please help me resolve this?

apls777 commented 4 years ago

Thank you, Ivan. It's a bug. A quick workaround would be to explicitly specify mount directories for the rest of the instance volumes. For example:

...
dockerDataRoot: /docker
volumes:
  - name: project
    parameters:
      size: 20
      mountDir: /mnt/project
  - name: data
    parameters:
      size: 500
      mountDir: /mnt/data
  - name: docker
    parameters:
      size: 10
      mountDir: /docker
qraleq commented 4 years ago

Thanks, Oleg!

apls777 commented 3 years ago

Fixed in v1.3.1