mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	Windows: Set default exec driver to windows
Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
		
							parent
							
								
									0d445685b8
								
							
						
					
					
						commit
						041ba90dbb
					
				
					 3 changed files with 3 additions and 1 deletions
				
			
		| 
						 | 
					@ -76,7 +76,7 @@ func (config *Config) InstallCommonFlags() {
 | 
				
			||||||
	flag.StringVar(&config.Bridge.DefaultGatewayIPv6, []string{"-default-gateway-v6"}, "", "Container default gateway IPv6 address")
 | 
						flag.StringVar(&config.Bridge.DefaultGatewayIPv6, []string{"-default-gateway-v6"}, "", "Container default gateway IPv6 address")
 | 
				
			||||||
	flag.BoolVar(&config.Bridge.InterContainerCommunication, []string{"#icc", "-icc"}, true, "Enable inter-container communication")
 | 
						flag.BoolVar(&config.Bridge.InterContainerCommunication, []string{"#icc", "-icc"}, true, "Enable inter-container communication")
 | 
				
			||||||
	flag.StringVar(&config.GraphDriver, []string{"s", "-storage-driver"}, "", "Storage driver to use")
 | 
						flag.StringVar(&config.GraphDriver, []string{"s", "-storage-driver"}, "", "Storage driver to use")
 | 
				
			||||||
	flag.StringVar(&config.ExecDriver, []string{"e", "-exec-driver"}, "native", "Exec driver to use")
 | 
						flag.StringVar(&config.ExecDriver, []string{"e", "-exec-driver"}, defaultExec, "Exec driver to use")
 | 
				
			||||||
	flag.IntVar(&config.Mtu, []string{"#mtu", "-mtu"}, 0, "Set the containers network MTU")
 | 
						flag.IntVar(&config.Mtu, []string{"#mtu", "-mtu"}, 0, "Set the containers network MTU")
 | 
				
			||||||
	flag.BoolVar(&config.EnableCors, []string{"#api-enable-cors", "#-api-enable-cors"}, false, "Enable CORS headers in the remote API, this is deprecated by --api-cors-header")
 | 
						flag.BoolVar(&config.EnableCors, []string{"#api-enable-cors", "#-api-enable-cors"}, false, "Enable CORS headers in the remote API, this is deprecated by --api-cors-header")
 | 
				
			||||||
	flag.StringVar(&config.CorsHeaders, []string{"-api-cors-header"}, "", "Set CORS headers in the remote API")
 | 
						flag.StringVar(&config.CorsHeaders, []string{"-api-cors-header"}, "", "Set CORS headers in the remote API")
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -9,6 +9,7 @@ import (
 | 
				
			||||||
var (
 | 
					var (
 | 
				
			||||||
	defaultPidFile = "/var/run/docker.pid"
 | 
						defaultPidFile = "/var/run/docker.pid"
 | 
				
			||||||
	defaultGraph   = "/var/lib/docker"
 | 
						defaultGraph   = "/var/lib/docker"
 | 
				
			||||||
 | 
						defaultExec    = "native"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Config defines the configuration of a docker daemon.
 | 
					// Config defines the configuration of a docker daemon.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -7,6 +7,7 @@ import (
 | 
				
			||||||
var (
 | 
					var (
 | 
				
			||||||
	defaultPidFile = os.Getenv("programdata") + string(os.PathSeparator) + "docker.pid"
 | 
						defaultPidFile = os.Getenv("programdata") + string(os.PathSeparator) + "docker.pid"
 | 
				
			||||||
	defaultGraph   = os.Getenv("programdata") + string(os.PathSeparator) + "docker"
 | 
						defaultGraph   = os.Getenv("programdata") + string(os.PathSeparator) + "docker"
 | 
				
			||||||
 | 
						defaultExec    = "windows"
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Config defines the configuration of a docker daemon.
 | 
					// Config defines the configuration of a docker daemon.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue