github.com/coreos/docker@v1.13.1/daemon/config_solaris.go (about)

     1  package daemon
     2  
     3  import (
     4  	"github.com/spf13/pflag"
     5  )
     6  
     7  var (
     8  	defaultPidFile = "/system/volatile/docker/docker.pid"
     9  	defaultGraph   = "/var/lib/docker"
    10  	defaultExec    = "zones"
    11  )
    12  
    13  // Config defines the configuration of a docker daemon.
    14  // These are the configuration settings that you pass
    15  // to the docker daemon when you launch it with say: `docker -d -e lxc`
    16  type Config struct {
    17  	CommonConfig
    18  
    19  	// These fields are common to all unix platforms.
    20  	CommonUnixConfig
    21  }
    22  
    23  // bridgeConfig stores all the bridge driver specific
    24  // configuration.
    25  type bridgeConfig struct {
    26  	commonBridgeConfig
    27  
    28  	// Fields below here are platform specific.
    29  	commonUnixBridgeConfig
    30  }
    31  
    32  // InstallFlags adds command-line options to the top-level flag parser for
    33  // the current process.
    34  func (config *Config) InstallFlags(flags *pflag.FlagSet) {
    35  	// First handle install flags which are consistent cross-platform
    36  	config.InstallCommonFlags(flags)
    37  
    38  	// Then install flags common to unix platforms
    39  	config.InstallCommonUnixFlags(flags)
    40  
    41  	// Then platform-specific install flags
    42  	config.attachExperimentalFlags(flags)
    43  }
    44  
    45  func (config *Config) isSwarmCompatible() error {
    46  	return nil
    47  }