@@ -138,7 +138,7 @@ func ensureStandaloneRunnerAvailable(ctx context.Context, printer standalone.Sta
138138 port = standalone .DefaultControllerPortCloud
139139 environment = "cloud"
140140 }
141- if err := standalone .CreateControllerContainer (ctx , dockerClient , port , host , environment , false , gpu , "" , modelStorageVolume , printer , engineKind , debug , false ); err != nil {
141+ if err := standalone .CreateControllerContainer (ctx , dockerClient , port , host , environment , false , gpu , "" , modelStorageVolume , printer , engineKind , debug , false , "" ); err != nil {
142142 return nil , fmt .Errorf ("unable to initialize standalone model runner container: %w" , err )
143143 }
144144
@@ -172,6 +172,7 @@ type runnerOptions struct {
172172 doNotTrack bool
173173 pullImage bool
174174 pruneContainers bool
175+ proxyCert string
175176}
176177
177178// runInstallOrStart is shared logic for install-runner and start-runner commands
@@ -285,7 +286,7 @@ func runInstallOrStart(cmd *cobra.Command, opts runnerOptions, debug bool) error
285286 return fmt .Errorf ("unable to initialize standalone model storage: %w" , err )
286287 }
287288 // Create the model runner container.
288- if err := standalone .CreateControllerContainer (cmd .Context (), dockerClient , port , opts .host , environment , opts .doNotTrack , gpu , opts .backend , modelStorageVolume , asPrinter (cmd ), engineKind , debug , vllmOnWSL ); err != nil {
289+ if err := standalone .CreateControllerContainer (cmd .Context (), dockerClient , port , opts .host , environment , opts .doNotTrack , gpu , opts .backend , modelStorageVolume , asPrinter (cmd ), engineKind , debug , vllmOnWSL , opts . proxyCert ); err != nil {
289290 return fmt .Errorf ("unable to initialize standalone model runner container: %w" , err )
290291 }
291292
@@ -300,6 +301,7 @@ func newInstallRunner() *cobra.Command {
300301 var backend string
301302 var doNotTrack bool
302303 var debug bool
304+ var proxyCert string
303305 c := & cobra.Command {
304306 Use : "install-runner" ,
305307 Short : "Install Docker Model Runner (Docker Engine only)" ,
@@ -312,6 +314,7 @@ func newInstallRunner() *cobra.Command {
312314 doNotTrack : doNotTrack ,
313315 pullImage : true ,
314316 pruneContainers : false ,
317+ proxyCert : proxyCert ,
315318 }, debug )
316319 },
317320 ValidArgsFunction : completion .NoComplete ,
@@ -323,6 +326,7 @@ func newInstallRunner() *cobra.Command {
323326 Backend : & backend ,
324327 DoNotTrack : & doNotTrack ,
325328 Debug : & debug ,
329+ ProxyCert : & proxyCert ,
326330 })
327331 return c
328332}
0 commit comments