Stop destroys the container
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e8d952cac0
commit
61adbd7a28
@ -326,6 +326,9 @@ func (p *Processor) Delete() error {
|
||||
// Stop stops app
|
||||
func (p *Processor) Stop() error {
|
||||
container, err := p.getContainer()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
status, err := container.Status()
|
||||
if err != nil {
|
||||
@ -338,6 +341,11 @@ func (p *Processor) Stop() error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
err = container.Destroy()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user