Also remove "-f" from "docker tag" (since it's deprecated in 1.10+ and removed in 1.12+)
This commit is contained in:
parent
41c7a5952f
commit
a48a191751
|
|
@ -151,10 +151,10 @@ func dockerTag(tag1 string, tag2 string) error {
|
||||||
if debugFlag {
|
if debugFlag {
|
||||||
fmt.Printf("$ docker tag %q %q\n", tag1, tag2)
|
fmt.Printf("$ docker tag %q %q\n", tag1, tag2)
|
||||||
}
|
}
|
||||||
_, err := exec.Command("docker", "tag", "-f", tag1, tag2).Output()
|
_, err := exec.Command("docker", "tag", tag1, tag2).Output()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
if ee, ok := err.(*exec.ExitError); ok {
|
if ee, ok := err.(*exec.ExitError); ok {
|
||||||
return fmt.Errorf("%v\ncommand: docker tag -f %q %q\n%s", ee, tag1, tag2, string(ee.Stderr))
|
return fmt.Errorf("%v\ncommand: docker tag %q %q\n%s", ee, tag1, tag2, string(ee.Stderr))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue