|
@@ -3,6 +3,7 @@ package dockerfile // import "github.com/docker/docker/builder/dockerfile"
|
|
import (
|
|
import (
|
|
"fmt"
|
|
"fmt"
|
|
"io"
|
|
"io"
|
|
|
|
+ "sort"
|
|
|
|
|
|
"github.com/docker/docker/runconfig/opts"
|
|
"github.com/docker/docker/runconfig/opts"
|
|
)
|
|
)
|
|
@@ -80,6 +81,7 @@ func (b *BuildArgs) WarnOnUnusedBuildArgs(out io.Writer) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if len(leftoverArgs) > 0 {
|
|
if len(leftoverArgs) > 0 {
|
|
|
|
+ sort.Strings(leftoverArgs)
|
|
fmt.Fprintf(out, "[Warning] One or more build-args %v were not consumed\n", leftoverArgs)
|
|
fmt.Fprintf(out, "[Warning] One or more build-args %v were not consumed\n", leftoverArgs)
|
|
}
|
|
}
|
|
}
|
|
}
|