Vendor integration dependencies.

This commit is contained in:
Timo Reimann 2017-02-07 22:33:23 +01:00
parent dd5e3fba01
commit 55b57c736b
2451 changed files with 731611 additions and 0 deletions

View file

@ -0,0 +1,20 @@
package docker
// Clean stops and removes (by default, controllable with the keep) kermit containers
func (p *Project) Clean(keep bool) error {
containers, err := p.List()
if err != nil {
return err
}
for _, container := range containers {
if err := p.StopWithTimeout(container.ID, 1); err != nil {
return err
}
if !keep {
if err := p.Remove(container.ID); err != nil {
return err
}
}
}
return nil
}