@@ -223,7 +223,7 @@ func runInstallOrStart(cmd *cobra.Command, opts runnerOptions) error {
223223
224224 // If pruning containers (reinstall), remove any existing model runner containers.
225225 if opts .pruneContainers {
226- if err := standalone .PruneControllerContainers (cmd .Context (), dockerClient , false , cmd ); err != nil {
226+ if err := standalone .PruneControllerContainers (cmd .Context (), dockerClient , false , asPrinter ( cmd ) ); err != nil {
227227 return fmt .Errorf ("unable to remove model runner container(s): %w" , err )
228228 }
229229 } else {
@@ -271,18 +271,18 @@ func runInstallOrStart(cmd *cobra.Command, opts runnerOptions) error {
271271
272272 // Ensure that we have an up-to-date copy of the image, if requested.
273273 if opts .pullImage {
274- if err := standalone .EnsureControllerImage (cmd .Context (), dockerClient , gpu , opts .backend , cmd ); err != nil {
274+ if err := standalone .EnsureControllerImage (cmd .Context (), dockerClient , gpu , opts .backend , asPrinter ( cmd ) ); err != nil {
275275 return fmt .Errorf ("unable to pull latest standalone model runner image: %w" , err )
276276 }
277277 }
278278
279279 // Ensure that we have a model storage volume.
280- modelStorageVolume , err := standalone .EnsureModelStorageVolume (cmd .Context (), dockerClient , cmd )
280+ modelStorageVolume , err := standalone .EnsureModelStorageVolume (cmd .Context (), dockerClient , asPrinter ( cmd ) )
281281 if err != nil {
282282 return fmt .Errorf ("unable to initialize standalone model storage: %w" , err )
283283 }
284284 // Create the model runner container.
285- if err := standalone .CreateControllerContainer (cmd .Context (), dockerClient , port , opts .host , environment , opts .doNotTrack , gpu , opts .backend , modelStorageVolume , cmd , engineKind ); err != nil {
285+ if err := standalone .CreateControllerContainer (cmd .Context (), dockerClient , port , opts .host , environment , opts .doNotTrack , gpu , opts .backend , modelStorageVolume , asPrinter ( cmd ) , engineKind ); err != nil {
286286 return fmt .Errorf ("unable to initialize standalone model runner container: %w" , err )
287287 }
288288
0 commit comments