build: do not error out if --network is default

Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
Tibor Vass 2019-04-16 23:37:23 +00:00
parent b6de0fa0ff
commit 81b35147e4

View File

@ -71,7 +71,7 @@ func runBuild(dockerCli command.Cli, in buildOptions) error {
if in.quiet {
return errors.Errorf("quiet currently not implemented")
}
if in.networkMode != "" {
if in.networkMode != "default" {
return errors.Errorf("network currently not implemented")
}
if in.imageIDFile != "" {