|
@@ -10,6 +10,7 @@ import (
|
|
|
"github.com/dotcloud/docker/api"
|
|
|
"github.com/dotcloud/docker/engine"
|
|
|
flag "github.com/dotcloud/docker/pkg/mflag"
|
|
|
+ "github.com/dotcloud/docker/pkg/opts"
|
|
|
"github.com/dotcloud/docker/sysinit"
|
|
|
"github.com/dotcloud/docker/utils"
|
|
|
)
|
|
@@ -36,13 +37,13 @@ func main() {
|
|
|
pidfile = flag.String([]string{"p", "-pidfile"}, "/var/run/docker.pid", "Path to use for daemon PID file")
|
|
|
flRoot = flag.String([]string{"g", "-graph"}, "/var/lib/docker", "Path to use as the root of the docker runtime")
|
|
|
flEnableCors = flag.Bool([]string{"#api-enable-cors", "-api-enable-cors"}, false, "Enable CORS headers in the remote API")
|
|
|
- flDns = docker.NewListOpts(docker.ValidateIp4Address)
|
|
|
+ flDns = opts.NewListOpts(opts.ValidateIp4Address)
|
|
|
flEnableIptables = flag.Bool([]string{"#iptables", "-iptables"}, true, "Disable docker's addition of iptables rules")
|
|
|
flEnableIpForward = flag.Bool([]string{"#ip-forward", "-ip-forward"}, true, "Disable enabling of net.ipv4.ip_forward")
|
|
|
flDefaultIp = flag.String([]string{"#ip", "-ip"}, "0.0.0.0", "Default IP address to use when binding container ports")
|
|
|
flInterContainerComm = flag.Bool([]string{"#icc", "-icc"}, true, "Enable inter-container communication")
|
|
|
flGraphDriver = flag.String([]string{"s", "-storage-driver"}, "", "Force the docker runtime to use a specific storage driver")
|
|
|
- flHosts = docker.NewListOpts(docker.ValidateHost)
|
|
|
+ flHosts = opts.NewListOpts(api.ValidateHost)
|
|
|
flMtu = flag.Int([]string{"#mtu", "-mtu"}, 0, "Set the containers network MTU; if no value is provided: default to the default route MTU or 1500 if not default route is available")
|
|
|
)
|
|
|
flag.Var(&flDns, []string{"#dns", "-dns"}, "Force docker to use specific DNS servers")
|