(Try to) stop old container before removing it.
This commit is contained in:
		
							
								
								
									
										1
									
								
								dup.rb
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								dup.rb
									
									
									
									
									
								
							@@ -311,6 +311,7 @@ class Container
 | 
				
			|||||||
	
 | 
						
 | 
				
			||||||
	def stop_and_remove
 | 
						def stop_and_remove
 | 
				
			||||||
		verbose "Stopping and removing old container..."
 | 
							verbose "Stopping and removing old container..."
 | 
				
			||||||
 | 
							run_cmd("docker stop #{@name.shellescape} >/dev/null 2>&1", true)
 | 
				
			||||||
		run_cmd("docker rm -f #{@name.shellescape} >/dev/null 2>&1", true)
 | 
							run_cmd("docker rm -f #{@name.shellescape} >/dev/null 2>&1", true)
 | 
				
			||||||
	end
 | 
						end
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user