mirror of https://github.com/docker/docs.git
Merge pull request #820 from vieux/rename_destroy
rename Destroy ro RemoveContainer for consistency
This commit is contained in:
commit
53e3c5b05f
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue