@@ -100,7 +100,7 @@ func ensureStandaloneRunnerAvailable(ctx context.Context, printer standalone.Sta
100100 if engineKind == desktop .ModelRunnerEngineKindCloud {
101101 port = standalone .DefaultControllerPortCloud
102102 }
103- if err := standalone .CreateControllerContainer (ctx , dockerClient , port , gpu , modelStorageVolume , printer ); err != nil {
103+ if err := standalone .CreateControllerContainer (ctx , dockerClient , port , false , gpu , modelStorageVolume , printer ); err != nil {
104104 return fmt .Errorf ("unable to initialize standalone model runner container: %w" , err )
105105 }
106106
@@ -111,6 +111,7 @@ func ensureStandaloneRunnerAvailable(ctx context.Context, printer standalone.Sta
111111func newInstallRunner () * cobra.Command {
112112 var port uint16
113113 var gpuMode string
114+ var doNotTrack bool
114115 c := & cobra.Command {
115116 Use : "install-runner" ,
116117 Short : "Install Docker Model Runner (Docker Engine only)" ,
@@ -182,9 +183,8 @@ func newInstallRunner() *cobra.Command {
182183 if err != nil {
183184 return fmt .Errorf ("unable to initialize standalone model storage: %w" , err )
184185 }
185-
186186 // Create the model runner container.
187- if err := standalone .CreateControllerContainer (cmd .Context (), dockerClient , port , gpu , modelStorageVolume , cmd ); err != nil {
187+ if err := standalone .CreateControllerContainer (cmd .Context (), dockerClient , port , doNotTrack , gpu , modelStorageVolume , cmd ); err != nil {
188188 return fmt .Errorf ("unable to initialize standalone model runner container: %w" , err )
189189 }
190190
@@ -196,5 +196,6 @@ func newInstallRunner() *cobra.Command {
196196 c .Flags ().Uint16Var (& port , "port" , standalone .DefaultControllerPortMoby ,
197197 "Docker container port for Docker Model Runner" )
198198 c .Flags ().StringVar (& gpuMode , "gpu" , "auto" , "Specify GPU support (none|auto|cuda)" )
199+ c .Flags ().BoolVar (& doNotTrack , "do-not-track" , false , "Do not track models usage in Docker Model Runner" )
199200 return c
200201}
0 commit comments