|
@@ -37,6 +37,8 @@ type Config struct {
|
|
GraphOptions []string
|
|
GraphOptions []string
|
|
ExecDriver string
|
|
ExecDriver string
|
|
Mtu int
|
|
Mtu int
|
|
|
|
+ SocketGroup string
|
|
|
|
+ EnableCors bool
|
|
DisableNetwork bool
|
|
DisableNetwork bool
|
|
EnableSelinuxSupport bool
|
|
EnableSelinuxSupport bool
|
|
Context map[string][]string
|
|
Context map[string][]string
|
|
@@ -65,6 +67,8 @@ func (config *Config) InstallFlags() {
|
|
flag.StringVar(&config.ExecDriver, []string{"e", "-exec-driver"}, "native", "Exec driver to use")
|
|
flag.StringVar(&config.ExecDriver, []string{"e", "-exec-driver"}, "native", "Exec driver to use")
|
|
flag.BoolVar(&config.EnableSelinuxSupport, []string{"-selinux-enabled"}, false, "Enable selinux support")
|
|
flag.BoolVar(&config.EnableSelinuxSupport, []string{"-selinux-enabled"}, false, "Enable selinux support")
|
|
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.StringVar(&config.SocketGroup, []string{"G", "-group"}, "docker", "Group for the unix socket")
|
|
|
|
+ flag.BoolVar(&config.EnableCors, []string{"#api-enable-cors", "-api-enable-cors"}, false, "Enable CORS headers in the remote API")
|
|
opts.IPVar(&config.DefaultIp, []string{"#ip", "-ip"}, "0.0.0.0", "Default IP when binding container ports")
|
|
opts.IPVar(&config.DefaultIp, []string{"#ip", "-ip"}, "0.0.0.0", "Default IP when binding container ports")
|
|
opts.ListVar(&config.GraphOptions, []string{"-storage-opt"}, "Set storage driver options")
|
|
opts.ListVar(&config.GraphOptions, []string{"-storage-opt"}, "Set storage driver options")
|
|
// FIXME: why the inconsistency between "hosts" and "sockets"?
|
|
// FIXME: why the inconsistency between "hosts" and "sockets"?
|