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
					
				
					 1 changed files with 8 additions and 0 deletions
				
			
		| 
						 | 
					@ -326,6 +326,9 @@ func (p *Processor) Delete() error {
 | 
				
			||||||
// Stop stops app
 | 
					// Stop stops app
 | 
				
			||||||
func (p *Processor) Stop() error {
 | 
					func (p *Processor) Stop() error {
 | 
				
			||||||
	container, err := p.getContainer()
 | 
						container, err := p.getContainer()
 | 
				
			||||||
 | 
						if err != nil {
 | 
				
			||||||
 | 
							return err
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	status, err := container.Status()
 | 
						status, err := container.Status()
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
| 
						 | 
					@ -338,6 +341,11 @@ func (p *Processor) Stop() error {
 | 
				
			||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
			return err
 | 
								return err
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
							err = container.Destroy()
 | 
				
			||||||
 | 
							if err != nil {
 | 
				
			||||||
 | 
								return err
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return nil
 | 
						return nil
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue