mirror of
https://github.com/docker/compose.git
synced 2025-07-28 16:14:06 +02:00
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:
parent
ad750d6143
commit
7c999d7f93
@ -239,8 +239,8 @@ func (s *composeService) preChecks(project *types.Project, options api.PublishOp
|
|||||||
bindMounts := s.checkForBindMount(project)
|
bindMounts := s.checkForBindMount(project)
|
||||||
if len(bindMounts) > 0 {
|
if len(bindMounts) > 0 {
|
||||||
fmt.Println("you are about to publish bind mounts declaration within your OCI artifact.\n" +
|
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" +
|
"only the bind mount declarations will be added to the OCI artifact (not content)\n" +
|
||||||
"please double check that you are not mounting potential sensitive directories or data")
|
"please double check that you are not mounting potential user's sensitive directories or data")
|
||||||
for key, val := range bindMounts {
|
for key, val := range bindMounts {
|
||||||
_, _ = fmt.Fprintln(s.dockerCli.Out(), key)
|
_, _ = fmt.Fprintln(s.dockerCli.Out(), key)
|
||||||
for _, v := range val {
|
for _, v := range val {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user