docs/container-inspection.md
Get detailed, machine-readable information about your containers and images.
container image list and container list provide basic information for all of your images and containers. You can also use list and inspect commands to print detailed machine-readable output for resources.
Use the inspect command and send the result to the jq command to get pretty-printed JSON for the images or containers that you specify:
Use the list command with the --format option to display information for all images or containers. In this example, the --all option shows stopped as well as running containers, and jq selects the IP address for each running container:
See Networking for how to publish ports, reach the host from a container, set a custom MAC address, and create isolated networks.