From b5c499b98268fcdaae4dfb12426a712b960ebfc8 Mon Sep 17 00:00:00 2001 From: Brian Goff Date: Fri, 29 Jan 2016 14:28:30 -0500 Subject: [PATCH] update doc string Signed-off-by: Brian Goff Upstream-commit: 9c09a79ba54080873b435842fb2a4aaa3b701a9c Component: engine --- components/engine/builder/dockerfile/builder.go | 4 ++-- components/engine/daemon/daemon.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/engine/builder/dockerfile/builder.go b/components/engine/builder/dockerfile/builder.go index 070e1639c8..9354a5f79e 100644 --- a/components/engine/builder/dockerfile/builder.go +++ b/components/engine/builder/dockerfile/builder.go @@ -173,8 +173,8 @@ func (b *Builder) Cancel() { }) } -// BuildFromConfig will do build directly from parameter 'changes', -// which is treated like it is coming from a Dockerfile. It will: +// BuildFromConfig builds directly from `changes`, treating it as if it were the contents of a Dockerfile +// It will: // - Call parse.Parse() to get an AST root for the concatenated Dockerfile entries. // - Do build by calling builder.dispatch() to call all entries' handling routines // diff --git a/components/engine/daemon/daemon.go b/components/engine/daemon/daemon.go index 022bbdc6c2..5bd5fd45d4 100644 --- a/components/engine/daemon/daemon.go +++ b/components/engine/daemon/daemon.go @@ -1013,8 +1013,8 @@ func (daemon *Daemon) changes(container *container.Container) ([]archive.Change, return container.RWLayer.Changes() } -// TagImage creates a tag in the repository and with the name specified by newTag, -// pointing to the image named imageName (alternatively, imageName can also be an image ID). +// TagImage creates the tag specified by newTag, pointing to the image named +// imageName (alternatively, imageName can also be an image ID). func (daemon *Daemon) TagImage(newTag reference.Named, imageName string) error { imageID, err := daemon.GetImageID(imageName) if err != nil {