feat(volumes): create and mount data volumes when running service with 'uc run' command

This commit is contained in:
Pavel Sviderski
2025-04-11 21:28:36 +10:00
parent 87331a9265
commit f8ebd94a79
5 changed files with 325 additions and 111 deletions
+2 -2
View File
@@ -61,8 +61,8 @@ func (cli *Client) CreateContainer(
return resp, fmt.Errorf("unsupported pull policy: '%s'", spec.Container.PullPolicy)
}
// Not found error is expected if the image is missing.
if !dockerclient.IsErrNotFound(err) {
// NotFound (No such image) error is expected if the image is missing.
if !dockerclient.IsErrNotFound(err) || !strings.Contains(err.Error(), "No such image") {
return resp, err
}