improve publish bind mount warning message

Co-authored-by: Nicolas De loof <nicolas.deloof@gmail.com>
Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
This commit is contained in:
Guillaume Lours 2025-06-30 14:46:51 +02:00 committed by Nicolas De loof
parent ad750d6143
commit 7c999d7f93

View File

@ -239,8 +239,8 @@ func (s *composeService) preChecks(project *types.Project, options api.PublishOp
bindMounts := s.checkForBindMount(project)
if len(bindMounts) > 0 {
fmt.Println("you are about to publish bind mounts declaration within your OCI artifact.\n" +
"only the bind mount declarations will be added to the OCI artifact\n" +
"please double check that you are not mounting potential sensitive directories or data")
"only the bind mount declarations will be added to the OCI artifact (not content)\n" +
"please double check that you are not mounting potential user's sensitive directories or data")
for key, val := range bindMounts {
_, _ = fmt.Fprintln(s.dockerCli.Out(), key)
for _, v := range val {