diff --git a/cli/command/stack/kubernetes/stack.go b/cli/command/stack/kubernetes/stack.go index dedae3707f..566e772924 100644 --- a/cli/command/stack/kubernetes/stack.go +++ b/cli/command/stack/kubernetes/stack.go @@ -2,7 +2,7 @@ package kubernetes import ( "io/ioutil" - "path" + "path/filepath" "sort" "github.com/docker/cli/kubernetes/compose/v1beta2" @@ -37,7 +37,7 @@ func (s *stack) createFileBasedConfigMaps(configMaps corev1.ConfigMapInterface) continue } - fileName := path.Base(config.File) + fileName := filepath.Base(config.File) content, err := ioutil.ReadFile(config.File) if err != nil { return err @@ -77,7 +77,7 @@ func (s *stack) createFileBasedSecrets(secrets corev1.SecretInterface) error { continue } - fileName := path.Base(secret.File) + fileName := filepath.Base(secret.File) content, err := ioutil.ReadFile(secret.File) if err != nil { return err