mirror of
https://github.com/psviderski/uncloud.git
synced 2026-10-06 13:18:58 +00:00
feat(volumes): create and mount data volumes when running service with 'uc run' command
This commit is contained in:
1 parent
87331a9265
commit
f8ebd94a79
5 files changed
+325
-111
No files matched your search
+1
-1
@@ -168,7 +168,7 @@ func (s *ContainerSpec) SetDefaults() ContainerSpec {
|
||||
|
||||
func (s *ContainerSpec) Validate() error {
|
||||
if _, err := reference.ParseDockerRef(s.Image); err != nil {
|
||||
return fmt.Errorf("invalid image: %w", err)
|
||||
return fmt.Errorf("invalid image '%s': %w", s.Image, err)
|
||||
}
|
||||
|
||||
for _, m := range s.VolumeMounts {
|
||||
|
||||
Reference in new issue
Block a user