Merge pull request #820 from vieux/rename_destroy

rename Destroy ro RemoveContainer for consistency
This commit is contained in:
Victor Vieux 2015-05-20 13:29:21 -07:00
commit 53e3c5b05f
2 changed files with 3 additions and 3 deletions

View File

@ -400,8 +400,8 @@ func (e *Engine) Create(config *ContainerConfig, name string, pullImage bool) (*
return e.containers[id], nil
}
// Destroy and remove a container from the engine.
func (e *Engine) Destroy(container *Container, force bool) error {
// RemoveContainer a container from the engine.
func (e *Engine) RemoveContainer(container *Container, force bool) error {
if err := e.client.RemoveContainer(container.Id, force, true); err != nil {
return err
}

View File

@ -149,7 +149,7 @@ func (c *Cluster) RemoveContainer(container *cluster.Container, force bool) erro
c.scheduler.Lock()
defer c.scheduler.Unlock()
if err := container.Engine.Destroy(container, force); err != nil {
if err := container.Engine.RemoveContainer(container, force); err != nil {
return err
}