mirror of https://github.com/docker/cli.git
Some things just need to be line wrapped.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
3b8ecc089b
commit
2238492c51
|
@ -138,7 +138,6 @@ func (out *lastProgressOutput) WriteProgress(prog progress.Progress) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func runBuild(dockerCli *command.DockerCli, options buildOptions) error {
|
func runBuild(dockerCli *command.DockerCli, options buildOptions) error {
|
||||||
|
|
||||||
var (
|
var (
|
||||||
buildCtx io.ReadCloser
|
buildCtx io.ReadCloser
|
||||||
err error
|
err error
|
||||||
|
@ -333,7 +332,11 @@ func runBuild(dockerCli *command.DockerCli, options buildOptions) error {
|
||||||
// Windows: show error message about modified file permissions if the
|
// Windows: show error message about modified file permissions if the
|
||||||
// daemon isn't running Windows.
|
// daemon isn't running Windows.
|
||||||
if response.OSType != "windows" && runtime.GOOS == "windows" && !options.quiet {
|
if response.OSType != "windows" && runtime.GOOS == "windows" && !options.quiet {
|
||||||
fmt.Fprintln(dockerCli.Out(), `SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.`)
|
fmt.Fprintln(dockerCli.Out(), "SECURITY WARNING: You are building a Docker "+
|
||||||
|
"image from Windows against a non-Windows Docker host. All files and "+
|
||||||
|
"directories added to build context will have '-rwxr-xr-x' permissions. "+
|
||||||
|
"It is recommended to double check and reset permissions for sensitive "+
|
||||||
|
"files and directories.")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Everything worked so if -q was provided the output from the daemon
|
// Everything worked so if -q was provided the output from the daemon
|
||||||
|
|
Loading…
Reference in New Issue