Stop destroys the container
continuous-integration/drone/push Build is passing Details

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
1 changed files with 8 additions and 0 deletions

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