Fixed phrasing, typos and formatting in 'docker build'

This commit is contained in:
Solomon Hykes 2013-05-29 18:14:50 -07:00
Родитель faafbf2118
Коммит dcab408f6a
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -96,7 +96,7 @@ func (b *buildFile) CmdRun(args string) error {
b.config.Cmd = nil
MergeConfig(b.config, config)
utils.Debugf("Commang to be executed: %v", b.config.Cmd)
utils.Debugf("Command to be executed: %v", b.config.Cmd)
if cache, err := b.srv.ImageGetCached(b.image, b.config); err != nil {
return err
@ -197,7 +197,7 @@ func (b *buildFile) CmdAdd(args string) error {
}
tmp := strings.SplitN(args, " ", 2)
if len(tmp) != 2 {
return fmt.Errorf("Invalid INSERT format")
return fmt.Errorf("Invalid ADD format")
}
orig := strings.Trim(tmp[0], " ")
dest := strings.Trim(tmp[1], " ")
@ -371,7 +371,7 @@ func (b *buildFile) Build(dockerfile, context io.Reader) (string, error) {
for i := range b.tmpImages {
delete(b.tmpImages, i)
}
fmt.Fprintf(b.out, "Build success.\n Image id:\n%s\n", b.image)
fmt.Fprintf(b.out, "Build successful.\n===> %s\n", b.image)
return b.image, nil
}
for i := range b.tmpContainers {

Просмотреть файл

@ -131,7 +131,7 @@ func (cli *DockerCli) CmdInsert(args ...string) error {
}
func (cli *DockerCli) CmdBuild(args ...string) error {
cmd := Subcmd("build", "[CONTEXT|-]", "Build an image from a Dockerfile")
cmd := Subcmd("build", "PATH | -", "Build a new container image from the source code at PATH")
if err := cmd.Parse(args); err != nil {
return nil
}