mirror of https://github.com/docker/docs.git
commit
2906a670a3
|
|
@ -35,7 +35,7 @@ var (
|
||||||
{
|
{
|
||||||
Name: "join",
|
Name: "join",
|
||||||
ShortName: "j",
|
ShortName: "j",
|
||||||
Usage: "join a docker cluster",
|
Usage: "Join a docker cluster",
|
||||||
Flags: []cli.Flag{flJoinAdvertise, flHeartBeat, flTTL, flJoinRandomDelay, flDiscoveryOpt},
|
Flags: []cli.Flag{flJoinAdvertise, flHeartBeat, flTTL, flJoinRandomDelay, flDiscoveryOpt},
|
||||||
Action: join,
|
Action: join,
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ var (
|
||||||
flTTL = cli.StringFlag{
|
flTTL = cli.StringFlag{
|
||||||
Name: "ttl",
|
Name: "ttl",
|
||||||
Value: "180s",
|
Value: "180s",
|
||||||
Usage: "sets the expiration of an ephemeral node",
|
Usage: "set the expiration of an ephemeral node",
|
||||||
}
|
}
|
||||||
flTimeout = cli.StringFlag{
|
flTimeout = cli.StringFlag{
|
||||||
Name: "timeout",
|
Name: "timeout",
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ type Cluster interface {
|
||||||
// `status` is the current status, like "", "in progress" or "loaded"
|
// `status` is the current status, like "", "in progress" or "loaded"
|
||||||
Load(imageReader io.Reader, callback func(what, status string, err error))
|
Load(imageReader io.Reader, callback func(what, status string, err error))
|
||||||
|
|
||||||
// Return some info about the cluster, like nb or containers / images
|
// Return some info about the cluster, like nb of containers / images
|
||||||
// It is pretty open, so the implementation decides what to return.
|
// It is pretty open, so the implementation decides what to return.
|
||||||
Info() [][2]string
|
Info() [][2]string
|
||||||
|
|
||||||
|
|
@ -91,12 +91,12 @@ type Cluster interface {
|
||||||
// Return a random engine
|
// Return a random engine
|
||||||
RANDOMENGINE() (*Engine, error)
|
RANDOMENGINE() (*Engine, error)
|
||||||
|
|
||||||
// RenameContainer rename a container
|
// Rename a container
|
||||||
RenameContainer(container *Container, newName string) error
|
RenameContainer(container *Container, newName string) error
|
||||||
|
|
||||||
// BuildImage build an image
|
// Build an image
|
||||||
BuildImage(*types.ImageBuildOptions, io.Writer) error
|
BuildImage(*types.ImageBuildOptions, io.Writer) error
|
||||||
|
|
||||||
// TagImage tag an image
|
// Tag an image
|
||||||
TagImage(IDOrName string, repo string, tag string, force bool) error
|
TagImage(IDOrName string, repo string, tag string, force bool) error
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -605,7 +605,7 @@ func (c *Cluster) LaunchTask(t *task.Task) bool {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Debug("Cannot parse docker info from task status, please upgrade Mesos to the last version")
|
log.Debug("Cannot parse docker info from task status, please upgrade Mesos to the latest version")
|
||||||
// For mesos <= 0.22 we fallback to a full refresh + using labels
|
// For mesos <= 0.22 we fallback to a full refresh + using labels
|
||||||
// TODO: once 0.23 or 0.24 is released, remove all this block of code as it
|
// TODO: once 0.23 or 0.24 is released, remove all this block of code as it
|
||||||
// doesn't scale very well.
|
// doesn't scale very well.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue