@@ -170,7 +170,7 @@ func (*codeServerNode) GetEndpoints() []clablinks.Endpoint {
170170}
171171
172172// createLabels creates container labels.
173- func createCodeServerLabels (containerName , owner string , port uint , labsDir , host string ) map [string ]string {
173+ func createCodeServerLabels (containerName , owner string , port uint , labsDir string ) map [string ]string {
174174 labels := map [string ]string {
175175 clablabels .NodeName : containerName ,
176176 clablabels .NodeKind : "linux" ,
@@ -239,7 +239,7 @@ func codeServerStart(cobraCmd *cobra.Command, o *Options) error { //nolint: funl
239239
240240 owner := getOwnerName (o )
241241 labels := createCodeServerLabels (o .ToolsCodeServer .Name , owner , o .ToolsCodeServer .Port ,
242- o .ToolsCodeServer .LabsDirectory , o . ToolsCodeServer . Host )
242+ o .ToolsCodeServer .LabsDirectory )
243243
244244 // Create and start code server container
245245 log .Info ("Creating code server container" , "name" , o .ToolsCodeServer .Name )
@@ -271,16 +271,15 @@ func codeServerStart(cobraCmd *cobra.Command, o *Options) error { //nolint: funl
271271 if err == nil && len (containers ) > 0 && len (containers [0 ].Ports ) > 0 {
272272 for _ , portMapping := range containers [0 ].Ports {
273273 if portMapping .ContainerPort == 8080 {
274- log .Infof ("code-server available at: http://%s:%d" ,
275- o .ToolsCodeServer .Host , portMapping .HostPort )
274+ log .Infof ("code-server available at: http://0.0.0.0:%d" , portMapping .HostPort )
276275 break
277276 }
278277 }
279278 } else {
280279 log .Infof ("code-server container started. Check 'docker ps' for the assigned port." )
281280 }
282281 } else {
283- log .Infof ("code-server available at: http://%s :%d" , o . ToolsCodeServer . Host , o .ToolsCodeServer .Port )
282+ log .Infof ("code-server available at: http://0.0.0.0 :%d" , o .ToolsCodeServer .Port )
284283 }
285284
286285 return nil
0 commit comments