Skip to content

Commit 150449b

Browse files
committed
warn user secret uid/gid/mode is not supported
Signed-off-by: Nicolas De Loof <[email protected]>
1 parent 8d0df18 commit 150449b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/compose/create.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -867,6 +867,10 @@ func buildContainerConfigMounts(p types.Project, s types.ServiceConfig) ([]mount
867867
target = configsBaseDir + config.Target
868868
}
869869

870+
if config.UID != "" || config.GID != "" || config.Mode != nil {
871+
logrus.Warn("config `uid`, `gid` and `mode` are not supported, they will be ignored")
872+
}
873+
870874
definedConfig := p.Configs[config.Source]
871875
if definedConfig.External.External {
872876
return nil, fmt.Errorf("unsupported external config %s", definedConfig.Name)
@@ -902,6 +906,10 @@ func buildContainerSecretMounts(p types.Project, s types.ServiceConfig) ([]mount
902906
target = secretsDir + secret.Target
903907
}
904908

909+
if secret.UID != "" || secret.GID != "" || secret.Mode != nil {
910+
logrus.Warn("secrets `uid`, `gid` and `mode` are not supported, they will be ignored")
911+
}
912+
905913
definedSecret := p.Secrets[secret.Source]
906914
if definedSecret.External.External {
907915
return nil, fmt.Errorf("unsupported external secret %s", definedSecret.Name)

0 commit comments

Comments
 (0)