瀏覽代碼

update doc string

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
Brian Goff 9 年之前
父節點
當前提交
9c09a79ba5
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      builder/dockerfile/builder.go
  2. 2 2
      daemon/daemon.go

+ 2 - 2
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
 //

+ 2 - 2
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 {