Docker container inspect

From wikieduonline
Revision as of 06:13, 26 April 2020 by Welcome (talk | contribs) (Created page with " <pre> docker container inspect grafana [ { "Id": "0c633339bee8d9d082663ff6fa652e9af43ba48c3a6b2113f720aac2805ebe46", "Created": "2020-04-24T16:22:40.47105...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
docker container inspect grafana
[
    {
        "Id": "0c633339bee8d9d082663ff6fa652e9af43ba48c3a6b2113f720aac2805ebe46",
        "Created": "2020-04-24T16:22:40.471050923Z",
        "Path": "/run.sh",
        "Args": [],
        "State": {
            "Status": "running",
            "Running": true,
            "Paused": false,
            "Restarting": false,
            "OOMKilled": false,
            "Dead": false,
            "Pid": 139664,
            "ExitCode": 0,
            "Error": "",
            "StartedAt": "2020-04-24T16:22:41.783988581Z",
            "FinishedAt": "0001-01-01T00:00:00Z"
        },
        "Image": "sha256:7c7eb6f8bd67af2ffae758564f3724f61084cf2947c737fd648f76d33668fc93",
        "ResolvConfPath": "/var/lib/docker/containers/0c633339bee8d9d082663ff6fa652e9af43ba48c3a6b2113f720aac2805ebe46/resolv.conf",
        "HostnamePath": "/var/lib/docker/containers/0c633339bee8d9d082663ff6fa652e9af43ba48c3a6b2113f720aac2805ebe46/hostname",
        "HostsPath": "/var/lib/docker/containers/0c633339bee8d9d082663ff6fa652e9af43ba48c3a6b2113f720aac2805ebe46/hosts",
        "LogPath": "/var/lib/docker/containers/0c633339bee8d9d082663ff6fa652e9af43ba48c3a6b2113f720aac2805ebe46/0c633339bee8d9d082663ff6fa652e9af43ba48c3a6b2113f720aac2805ebe46-json.log",
        "Name": "/grafana",
        "RestartCount": 0,
        "Driver": "overlay2",
        "Platform": "linux",
        "MountLabel": "",
        "ProcessLabel": "",
        "AppArmorProfile": "docker-default",
        "ExecIDs": null,
        "HostConfig": {
            "Binds": null,
            "ContainerIDFile": "",
            "LogConfig": {
                "Type": "json-file",
                "Config": {}
            },
            "NetworkMode": "default",
            "PortBindings": {
                "3000/tcp": [
                    {
                        "HostIp": "",
                        "HostPort": "3000"
                    }
                ]
            },
            "RestartPolicy": {
                "Name": "no",
                "MaximumRetryCount": 0
            },
            "AutoRemove": false,
            "VolumeDriver": "",
            "VolumesFrom": null,
            "CapAdd": null,
            "CapDrop": null,
            "Capabilities": null,
            "Dns": [],
            "DnsOptions": [],
            "DnsSearch": [],
            "ExtraHosts": null,
            "GroupAdd": null,
            "IpcMode": "private",
            "Cgroup": "",
            "Links": null,
            "OomScoreAdj": 0,
            "PidMode": "",
            "Privileged": false,
            "PublishAllPorts": false,
            "ReadonlyRootfs": false,
            "SecurityOpt": null,
            "UTSMode": "",
            "UsernsMode": "",
            "ShmSize": 67108864,
            "Runtime": "runc",
            "ConsoleSize": [
                0,
                0
            ],
            "Isolation": "",
            "CpuShares": 0,
            "Memory": 0,
            "NanoCpus": 0,
            "CgroupParent": "",
            "BlkioWeight": 0,
            "BlkioWeightDevice": [],
            "BlkioDeviceReadBps": null,
            "BlkioDeviceWriteBps": null,
            "BlkioDeviceReadIOps": null,
            "BlkioDeviceWriteIOps": null,
            "CpuPeriod": 0,
            "CpuQuota": 0,
            "CpuRealtimePeriod": 0,
            "CpuRealtimeRuntime": 0,
            "CpusetCpus": "",
            "CpusetMems": "",
            "Devices": [],
            "DeviceCgroupRules": null,
            "DeviceRequests": null,
            "KernelMemory": 0,
            "KernelMemoryTCP": 0,
            "MemoryReservation": 0,
            "MemorySwap": 0,
            "MemorySwappiness": null,
            "OomKillDisable": false,
            "PidsLimit": null,
            "Ulimits": null,
            "CpuCount": 0,
            "CpuPercent": 0,
            "IOMaximumIOps": 0,
            "IOMaximumBandwidth": 0,
            "MaskedPaths": [
                "/proc/asound",
                "/proc/acpi",
                "/proc/kcore",
                "/proc/keys",
                "/proc/latency_stats",
                "/proc/timer_list",
                "/proc/timer_stats",
                "/proc/sched_debug",
                "/proc/scsi",
                "/sys/firmware"
            ],
            "ReadonlyPaths": [
                "/proc/bus",
                "/proc/fs",
                "/proc/irq",
                "/proc/sys",
                "/proc/sysrq-trigger"
            ]
        },
        "GraphDriver": {
            "Data": {
                "LowerDir": "/var/lib/docker/overlay2/f925b701494821a9f2450b1721ff34bf47ab4e551e5e351eaa5830549de24633-init/diff:/var/lib/docker/overlay2/a447f821c0889394b0d46bf1938980451927a437c488e6fe2677b56e603e184c/diff:/var/lib/docker/overlay2/5136d72f0b75ffa5f8d1ff677043e0b4a1750eb559626235462be254d75292bd/diff:/var/lib/docker/overlay2/e7717555347dd6add55a2dbf296f4a68ea7e003c31f1bac13ed2e8099e01093d/diff:/var/lib/docker/overlay2/5eae3c124bf24553d22e827ec61baf5c2124640e3d65db0c3826252795ce16a9/diff:/var/lib/docker/overlay2/5332a22b41dcd6ed6cc30afa2e6aefb3568dd60b9d9ef978f09bd8e320c2b9ab/diff:/var/lib/docker/overlay2/df188a08c272c8e7781a7dbb8fb08cd46157e09d906561fabedd81aa122d601a/diff:/var/lib/docker/overlay2/b0d36b693d9386a5e3f14619c5ad6ebabe8ad14d4d47d3c9f6097069b1135bc8/diff:/var/lib/docker/overlay2/c63c93b35b067680e0c0414db7adfb1cfe6fb0846e057f60f33961576651d435/diff",
                "MergedDir": "/var/lib/docker/overlay2/f925b701494821a9f2450b1721ff34bf47ab4e551e5e351eaa5830549de24633/merged",
                "UpperDir": "/var/lib/docker/overlay2/f925b701494821a9f2450b1721ff34bf47ab4e551e5e351eaa5830549de24633/diff",
                "WorkDir": "/var/lib/docker/overlay2/f925b701494821a9f2450b1721ff34bf47ab4e551e5e351eaa5830549de24633/work"
            },
            "Name": "overlay2"
        },
        "Mounts": [],
        "Config": {
            "Hostname": "0c633339bee8",
            "Domainname": "",
            "User": "grafana",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "3000/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/share/grafana/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "GF_PATHS_CONFIG=/etc/grafana/grafana.ini",
                "GF_PATHS_DATA=/var/lib/grafana",
                "GF_PATHS_HOME=/usr/share/grafana",
                "GF_PATHS_LOGS=/var/log/grafana",
                "GF_PATHS_PLUGINS=/var/lib/grafana/plugins",
                "GF_PATHS_PROVISIONING=/etc/grafana/provisioning"
            ],
            "Cmd": null,
            "Image": "grafana/grafana",
            "Volumes": null,
            "WorkingDir": "/usr/share/grafana",
            "Entrypoint": [
                "/run.sh"
            ],
            "OnBuild": null,
            "Labels": {}
        },
        "NetworkSettings": {
            "Bridge": "",
            "SandboxID": "86a321d7ba4a269c2d0d8119dd17ea5fb618aed66a86c67c0cbc5c8e6c1a7b36",
            "HairpinMode": false,
            "LinkLocalIPv6Address": "",
            "LinkLocalIPv6PrefixLen": 0,
            "Ports": {
                "3000/tcp": [
                    {
                        "HostIp": "0.0.0.0",
                        "HostPort": "3000"
                    }
                ]
            },
            "SandboxKey": "/var/run/docker/netns/86a321d7ba4a",
            "SecondaryIPAddresses": null,
            "SecondaryIPv6Addresses": null,
            "EndpointID": "43e85007bfe774477a1a7fffda6d434a9e9f3ce60209a14e283e395783b28756",
            "Gateway": "172.17.0.1",
            "GlobalIPv6Address": "",
            "GlobalIPv6PrefixLen": 0,
            "IPAddress": "172.17.0.4",
            "IPPrefixLen": 16,
            "IPv6Gateway": "",
            "MacAddress": "02:42:ac:11:00:04",
            "Networks": {
                "bridge": {
                    "IPAMConfig": null,
                    "Links": null,
                    "Aliases": null,
                    "NetworkID": "9351b04fb018705ade74d83d4c4d3d51797a39f67f046ead49d610c3824d04b4",
                    "EndpointID": "43e85007bfe774477a1a7fffda6d434a9e9f3ce60209a14e283e395783b28756",
                    "Gateway": "172.17.0.1",
                    "IPAddress": "172.17.0.4",
                    "IPPrefixLen": 16,
                    "IPv6Gateway": "",
                    "GlobalIPv6Address": "",
                    "GlobalIPv6PrefixLen": 0,
                    "MacAddress": "02:42:ac:11:00:04",
                    "DriverOpts": null
                }
            }
        }
    }
]


See also

Advertising: