diff --git a/operation_create.go b/operation_create.go index 216d896..6e71f0e 100644 --- a/operation_create.go +++ b/operation_create.go @@ -102,8 +102,14 @@ func (node *Node) Create(filters []string, cmdOverride []string, onlyDefault boo * Create a container for a node */ func (instance *Instance) Create(overrideCmd []string, force bool) bool { + node := instance.Node + if !force && instance.HasContainer(false) { + node.log.Info(node.Name+"["+instance.Name+"]: Skipping node instance, which already has a container") + return false + } + /** * Transform node data, into a format that can be used * for the actual Docker call. This involves transforming diff --git a/operation_up.go b/operation_up.go index 780429a..4d676cc 100644 --- a/operation_up.go +++ b/operation_up.go @@ -39,6 +39,8 @@ from beginning to fully operational, with a single command. SYNTAX: $/> coach {target} up + {targets} what target node instances the operation should process ($/> coach help targets) + TODO: - building images may take a long time, so maybe it should be optional; - pulling images may take a long time, so maybe it should be optional;