mirror of https://github.com/docker/docs.git
Fix check code for --cluster-store and --cluster-advertise in config_unix.go
Signed-off-by: Wonjun Kim <wonjun.kim@navercorp.com> (cherry picked from commit 4f671ae85e62d0b413f913b1289100ae7cc45972)
This commit is contained in:
parent
712cbdbe1f
commit
bd572fcd8f
|
|
@ -123,7 +123,7 @@ func (config *Config) GetAllRuntimes() map[string]types.Runtime {
|
|||
}
|
||||
|
||||
func (config *Config) isSwarmCompatible() error {
|
||||
if config.IsValueSet("cluster-store") || config.IsValueSet("cluster-advertise") {
|
||||
if config.ClusterStore != "" || config.ClusterAdvertise != "" {
|
||||
return fmt.Errorf("--cluster-store and --cluster-advertise daemon configurations are incompatible with swarm mode")
|
||||
}
|
||||
if config.LiveRestore {
|
||||
|
|
|
|||
Loading…
Reference in New Issue