Stop destroys the container
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adam Štrauch 2022-05-27 19:12:19 +02:00
parent e8d952cac0
commit 61adbd7a28
Signed by: cx
GPG key ID: 018304FFA8988F8D

View file

@ -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