use the container name as journal tag not id
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				/ Ansible Lint (push) Successful in 1m45s
				
			
		
		
	
	
		
	
		
			All checks were successful
		
		
	
	/ Ansible Lint (push) Successful in 1m45s
				
			Docker by default will use the container id as the journal tag when logging into systemd-journal. Using the container name makes easier to see which log belongs to which container.
This commit is contained in:
		
					parent
					
						
							
								6fa896dd3f
							
						
					
				
			
			
				commit
				
					
						3139b41433
					
				
			
		
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,3 +1,6 @@
 | 
			
		|||
{
 | 
			
		||||
    "log-driver": "journald"
 | 
			
		||||
    "log-driver": "journald",
 | 
			
		||||
    "log-opts": {
 | 
			
		||||
        "tag": "{{.Name}}"
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue