summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>2023-05-12 09:35:10 +0900
committerGitHub <noreply@github.com>2023-05-12 09:35:10 +0900
commit9e6370819bf61de7583ea00af13fcbedd2bbbfe7 (patch)
treeb64af72401c9df01c4d2b9d4b810c5a1c0399883
parent46ce4ec8cf6c05dfb395f1de93914ec7564216e7 (diff)
parent43b1afb2cfb08c4f5880e05897ebd69e248de04e (diff)
downloaddocker-9e6370819bf61de7583ea00af13fcbedd2bbbfe7.tar.gz
Merge pull request #45473 from zhangguanzhang/master-commentStr
[builder] make chownComment easy to read
-rw-r--r--builder/dockerfile/internals.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/builder/dockerfile/internals.go b/builder/dockerfile/internals.go
index 050deb1aad..9d103f6b44 100644
--- a/builder/dockerfile/internals.go
+++ b/builder/dockerfile/internals.go
@@ -122,7 +122,7 @@ func (b *Builder) performCopy(ctx context.Context, req dispatchRequest, inst cop
var chownComment string
if inst.chownStr != "" {
- chownComment = fmt.Sprintf("--chown=%s", inst.chownStr)
+ chownComment = fmt.Sprintf("--chown=%s ", inst.chownStr)
}
commentStr := fmt.Sprintf("%s %s%s in %s ", inst.cmdName, chownComment, srcHash, inst.dest)