Tools, FAQ, Tutorials:
"docker container inspect" - Inspect Container Configuration
How to display and inspect container's configuration using the "docker container inspect" command?
✍: FYIcenter.com
The "docker container inspect" command allows you to display and
inspect the container's configuration in JSON formation.
1. Create a new container from the "openjdk" image:
fyicenter$ docker container create --name java --tty --interactive openjdk
2. Run the "docker container inspect" command on the container:
fyicenter$ docker container inspect java
[
{
"Id": "2c513219b727c6da168b3e197ef91cdb15da6d3d43fb3d7383b453c292c2f212",
"Path": "/hello",
"Args": [],
"State": {
"Status": "exited",
"Running": false,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 0,
"ExitCode": 0,
"Error": "",
...
"Networks": {
"bridge": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "86e46e86a6784ce434515db2f7215a11c...",
"EndpointID": "a9cd2f10f9e61af91442c3a2a0174b8d0...",
"Gateway": "172.17.0.1",
"IPAddress": "172.17.0.3",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:ac:11:00:03",
"DriverOpts": null
}
}
}
}
]
You can read the output to see how the container is defined.
⇒ "docker container run" - Create and Run Container
⇐ "docker container exec --tty --interactive ... /bin/sh"
2021-10-02, ∼1656🔥, 0💬
Popular Posts:
How to use the Atom Online Validator at w3.org? w3.org feed validation service is provided at http:/...
What is EPUB 2.0 Metadata "dc:publisher" and "dc:rights" elements? EPUB 2.0 Metadata "dc:publisher" ...
How to use the urllib.request.Request object to build more complex HTTP request? The urllib.request....
How to add images to my EPUB books Images can be added into book content using the XHTML "img" eleme...
How to use "{{...}}" Liquid Codes in "set-body" Policy Statement? The "{{...}}" Liquid Codes in "set...