File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -205,11 +205,12 @@ ensure transparency and traceability:
205205  Metadata detailing how the image was built, following the [ SLSA Provenance] ( https://slsa.dev ) 
206206  framework.
207207
208- For example, you can  retrieve the SBOM for  a specific  image using the following 
209- command:
208+ For example, to  retrieve the SBOM of  a multi-architecture  image for a specific 
209+ platform (e.g.  ` linux/amd64 ` ), you can use the following  command:
210210
211211``` bash 
212- docker buildx imagetools inspect < IMAGE>  --format " {{ json .SBOM.SPDX }}" 
212+ docker buildx imagetools inspect < IMAGE>  \
213+   --format ' {{ json (index .SBOM "linux/amd64").SPDX }}' 
213214``` 
214215
215216This command outputs the SBOM in JSON format, providing a detailed view of the
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments