![]() For example, if we just wanted to list the OS type used in the image we could do so by using: $ docker inspect -format='' friendly_hoover | jq. We can do so by using the –format flag when running the command. ![]() Go’s text/templatepackage describes all the details of the format. If a format is specified, the given template will be executed for each result. By default, this renders all results in a JSON array. "VirtualSize": 132089228, Filtering Docker Inspect Image Dataĭue to the volume of information returned when using the docker inspect command, it’s often necessary to apply a filter to the output. This command has to be run targeting a manager node. A section of it looks like this: "Architecture": "amd64", The output is quite long due to the amount of information. This will output information on the nginx image. You can get detailed information on a docker image using docker inspect. All of these examples use the docker inspect command, but many other CLI commands have. Get detailed Docker Image information using Docker Inspect Docker provides a set of basic functions to manipulate template elements. First of all we will have a look at how to inspect docker images. The basic syntax for using docker inspect is: $ docker inspect NAMEīy default, docker inspect will render it’s output in a JSON array. ![]() Useful Tip – Be Specific when Inspecting Docker Resources.How toUse jq to format Docker Inspect JSON output.How to list a Docker Containers IP address and other network settings.Get detailed Docker Image information using Docker Inspect.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |