Home > Linux > Docker Inspect Tricks

Docker Inspect Tricks

Docker inspect provides all sorts of useful information.¬†Use with no format to get all values, then use –format to filter.

This example gets the complete container Id:

docker inspect –format='{{.Id}}’ $SHORT_CONTAINER_ID

 

 

Categories: Linux Tags: , , , ,
  1. No comments yet.
  1. No trackbacks yet.