@@ -244,7 +244,7 @@ func appleListVolumes(ctx context.Context) ([]VolumeInfo, error) {
244244 }
245245 result := make ([]VolumeInfo , 0 , len (records ))
246246 for _ , item := range records {
247- result = append (result , VolumeInfo { Name : item . Name , Labels : item . Labels } )
247+ result = append (result , VolumeInfo ( item ) )
248248 }
249249 return result , nil
250250}
@@ -415,7 +415,7 @@ func appleEnsureImage(ctx context.Context, imageName string) error {
415415 return runContainerCommand (ctx , io .Discard , io .Discard , "image" , "pull" , imageName )
416416}
417417
418- func buildAppleContainerArgs (ctx context.Context , config container.Config , hostConfig container.HostConfig , networkingConfig network.NetworkingConfig , containerName string , detach bool , remove bool ) ([]string , error ) {
418+ func buildAppleContainerArgs (ctx context.Context , config container.Config , hostConfig container.HostConfig , _ network.NetworkingConfig , containerName string , detach bool , remove bool ) ([]string , error ) {
419419 applyContainerLabels (& config )
420420 imageName := GetRegistryImageUrl (config .Image )
421421 if err := appleEnsureImage (ctx , imageName ); err != nil {
@@ -446,11 +446,11 @@ func buildAppleContainerArgs(ctx context.Context, config container.Config, hostC
446446 if hostConfig .ReadonlyRootfs {
447447 args = append (args , "--read-only" )
448448 }
449- if hostConfig .Resources . NanoCPUs > 0 {
450- args = append (args , "--cpus" , strconv .FormatInt (hostConfig .Resources . NanoCPUs / 1_000_000_000 , 10 ))
449+ if hostConfig .NanoCPUs > 0 {
450+ args = append (args , "--cpus" , strconv .FormatInt (hostConfig .NanoCPUs / 1_000_000_000 , 10 ))
451451 }
452- if hostConfig .Resources . Memory > 0 {
453- args = append (args , "--memory" , strconv .FormatInt (hostConfig .Resources . Memory , 10 ))
452+ if hostConfig .Memory > 0 {
453+ args = append (args , "--memory" , strconv .FormatInt (hostConfig .Memory , 10 ))
454454 }
455455 for path := range hostConfig .Tmpfs {
456456 args = append (args , "--tmpfs" , path )
0 commit comments