mirror of
				https://github.com/moby/moby.git
				synced 2022-11-09 12:21:53 -05:00 
			
		
		
		
	Merge pull request #12893 from vdemeester/12892-fix-labels-documentation
Fixing examples given for labels
This commit is contained in:
		
						commit
						0ad6f90127
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -129,10 +129,14 @@ You can view the labels via the `docker inspect` command:
 | 
			
		|||
    }
 | 
			
		||||
    ...
 | 
			
		||||
 | 
			
		||||
    $ docker inspect -f "{{json .Labels }}" 4fa6e0f0c678
 | 
			
		||||
    # Inspect labels on container
 | 
			
		||||
    $ docker inspect -f "{{json .Config.Labels }}" 4fa6e0f0c678
 | 
			
		||||
 | 
			
		||||
    {"Vendor":"ACME Incorporated","com.example.is-beta":"","com.example.version":"0.0.1-beta","com.example.release-date":"2015-02-12"}
 | 
			
		||||
 | 
			
		||||
    # Inspect labels on images
 | 
			
		||||
    $ docker inspect -f "{{json .ContainerConfig.Labels }}" myimage
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
## Query labels
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue