mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	Decouple daemon and container to stop and kill containers.
Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
		
							parent
							
								
									581380cc6c
								
							
						
					
					
						commit
						4f2a5ba360
					
				
					 12 changed files with 177 additions and 149 deletions
				
			
		
							
								
								
									
										10
									
								
								daemon/events.go
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								daemon/events.go
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,10 @@
 | 
			
		|||
package daemon
 | 
			
		||||
 | 
			
		||||
// logContainerEvent generates an event related to a container.
 | 
			
		||||
func (daemon *Daemon) logContainerEvent(container *Container, action string) {
 | 
			
		||||
	daemon.EventsService.Log(
 | 
			
		||||
		action,
 | 
			
		||||
		container.ID,
 | 
			
		||||
		container.Config.Image,
 | 
			
		||||
	)
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue