mirror of
https://github.com/moby/moby.git
synced 2025-08-08 13:22:22 +03:00
@@ -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
|
||||
//
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user