Migration guide¶
0.20.*¶
CLI compatibility¶
- CLI versions
0.19.*and earlier remain backward compatible with the0.20.*dstackserver. - CLI versions
0.20.are not compatible with server versions prior to0.20.*.
Do not upgrade the CLI to
0.20.*until the server has been upgraded.
Fleets¶
- Prior to
0.20,dstackautomatically provisioned a fleet if one did not exist at run time.
Beginning with0.20,dstackwill only use existing fleets.
Create fleets before submitting runs. To enable on-demand instance provisioning, configure
nodesas a range in the backend fleet configuration.
Working directory¶
- Previously, when
working_dirwas not specified,dstackdefaulted to/workflow. As of0.20,dstackuses the working directory defined in the Docker image. If the image does not define a working directory,dstackfalls back to/. - The default image introduced in
0.20uses/dstack/runas its default working directory.
To override the directory defined in the Docker image, specify
working_direxplicitly.
Repo directory¶
- Previously, if no repo directory was specified,
dstackcloned the repository into/workflow. With0.20, the working directory becomes the default repo directory. - In earlier versions, cloning was skipped if the repo directory was non-empty. Starting with
0.20, this results in arunner errorunlessif_existsis set toskipin the repo configuration.
Ensure repo directories are empty, or explicitly set
if_existstoskip.
Deprecated feature removal¶
The following deprecated commands have been removed in 0.20:
dstack configdstack statsdstack gateway create
Use the corresponding replacements:
dstack projectdstack metricsdstack apply
For more details on the changes, see the release notes.