diff --git a/builder/dockerfile/builder.go b/builder/dockerfile/builder.go index 070e1639c..9354a5f79 100644 --- a/builder/dockerfile/builder.go +++ b/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/daemon/daemon.go b/daemon/daemon.go index 022bbdc6c..5bd5fd45d 100644 --- a/daemon/daemon.go +++ b/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 {