From 61adbd7a2806394c4646b7aac79c62c2bd4f8837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Fri, 27 May 2022 19:12:19 +0200 Subject: [PATCH] Stop destroys the container --- glue/main.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/glue/main.go b/glue/main.go index e850772..550a35e 100644 --- a/glue/main.go +++ b/glue/main.go @@ -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