Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ~ $ sudo docker inspect postgres
- [
- {
- "Id": "5c346f2a54e6d46cf4908efae50d647941cc734ccf3dfc7244840b288eff3a1a",
- "Created": "2018-01-03T02:47:57.104898053Z",
- "Path": "docker-entrypoint.sh",
- "Args": [
- "postgres"
- ],
- "State": {
- "Status": "running",
- "Running": true,
- "Paused": false,
- "Restarting": false,
- "OOMKilled": false,
- "Dead": false,
- "Pid": 1395,
- "ExitCode": 0,
- "Error": "",
- "StartedAt": "2018-01-03T20:23:42.580899722Z",
- "FinishedAt": "2018-01-03T06:55:11.094075838Z"
- },
- "Image": "sha256:23c1fbd604c024134f41e291293e645f1ab692088953be06121d6e8077f87e4e",
- "ResolvConfPath": "/var/lib/docker/containers/5c346f2a54e6d46cf4908efae50d647941cc734ccf3dfc7244840b288eff3a1a/resolv.conf",
- "HostnamePath": "/var/lib/docker/containers/5c346f2a54e6d46cf4908efae50d647941cc734ccf3dfc7244840b288eff3a1a/hostname",
- "HostsPath": "/var/lib/docker/containers/5c346f2a54e6d46cf4908efae50d647941cc734ccf3dfc7244840b288eff3a1a/hosts",
- "LogPath": "",
- "Name": "/postgres",
- "RestartCount": 0,
- "Driver": "devicemapper",
- "MountLabel": "system_u:object_r:svirt_sandbox_file_t:s0:c483,c996",
- "ProcessLabel": "system_u:system_r:svirt_lxc_net_t:s0:c483,c996",
- "AppArmorProfile": "",
- "ExecIDs": null,
- "HostConfig": {
- "Binds": null,
- "ContainerIDFile": "",
- "LogConfig": {
- "Type": "journald",
- "Config": {}
- },
- "NetworkMode": "default",
- "PortBindings": {
- "5432/tcp": [
- {
- "HostIp": "",
- "HostPort": "80"
- }
- ]
- },
- "RestartPolicy": {
- "Name": "always",
- "MaximumRetryCount": 0
- },
- "AutoRemove": false,
- "VolumeDriver": "",
- "VolumesFrom": null,
- "CapAdd": null,
- "CapDrop": null,
- "Dns": [],
- "DnsOptions": [],
- "DnsSearch": [],
- "ExtraHosts": null,
- "GroupAdd": null,
- "IpcMode": "",
- "Cgroup": "",
- "Links": null,
- "OomScoreAdj": 0,
- "PidMode": "",
- "Privileged": false,
- "PublishAllPorts": false,
- "ReadonlyRootfs": false,
- "SecurityOpt": null,
- "UTSMode": "",
- "UsernsMode": "",
- "ShmSize": 67108864,
- "Runtime": "docker-runc",
- "ConsoleSize": [
- 0,
- 0
- ],
- "Isolation": "",
- "CpuShares": 0,
- "Memory": 0,
- "CgroupParent": "",
- "BlkioWeight": 0,
- "BlkioWeightDevice": null,
- "BlkioDeviceReadBps": null,
- "BlkioDeviceWriteBps": null,
- "BlkioDeviceReadIOps": null,
- "BlkioDeviceWriteIOps": null,
- "CpuPeriod": 0,
- "CpuQuota": 0,
- "CpusetCpus": "",
- "CpusetMems": "",
- "Devices": [],
- "DiskQuota": 0,
- "KernelMemory": 0,
- "MemoryReservation": 0,
- "MemorySwap": 0,
- "MemorySwappiness": -1,
- "OomKillDisable": false,
- "PidsLimit": 0,
- "Ulimits": null,
- "CpuCount": 0,
- "CpuPercent": 0,
- "IOMaximumIOps": 0,
- "IOMaximumBandwidth": 0
- },
- "GraphDriver": {
- "Name": "devicemapper",
- "Data": {
- "DeviceId": "12",
- "DeviceName": "docker-202:1-777181-cfa253baaa10e9c336954b59094014deac37361fa2f7281f1d7d03b208e63276",
- "DeviceSize": "10737418240"
- }
- },
- "Mounts": [
- {
- "Name": "10ba20f189aad71ef3d28d46c9267735623e15a5a832a34f234b34f3a430835b",
- "Source": "/var/lib/docker/volumes/10ba20f189aad71ef3d28d46c9267735623e15a5a832a34f234b34f3a430835b/_data",
- "Destination": "/var/lib/postgresql/data",
- "Driver": "local",
- "Mode": "",
- "RW": true,
- "Propagation": ""
- }
- ],
- "Config": {
- "Hostname": "5c346f2a54e6",
- "Domainname": "",
- "User": "",
- "AttachStdin": false,
- "AttachStdout": false,
- "AttachStderr": false,
- "ExposedPorts": {
- "5432/tcp": {}
- },
- "Tty": false,
- "OpenStdin": false,
- "StdinOnce": false,
- "Env": [
- "POSTGRES_USER=demo",
- "POSTGRES_PASSWORD=password",
- "POSTGRES_DB=sample",
- "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
- "LANG=en_US.utf8",
- "PG_MAJOR=9.6",
- "PG_VERSION=9.6.6",
- "PG_SHA256=399cdffcb872f785ba67e25d275463d74521566318cfef8fe219050d063c8154",
- "PGDATA=/var/lib/postgresql/data"
- ],
- "Cmd": [
- "postgres"
- ],
- "Image": "postgres:9.6-alpine",
- "Volumes": {
- "/var/lib/postgresql/data": {}
- },
- "WorkingDir": "",
- "Entrypoint": [
- "docker-entrypoint.sh"
- ],
- "OnBuild": null,
- "Labels": {}
- },
- "NetworkSettings": {
- "Bridge": "",
- "SandboxID": "06028a9f57a1101c93d1d8e9f4c65b74b19194ddf78ced2469d00395031e9a0a",
- "HairpinMode": false,
- "LinkLocalIPv6Address": "",
- "LinkLocalIPv6PrefixLen": 0,
- "Ports": {
- "5432/tcp": [
- {
- "HostIp": "0.0.0.0",
- "HostPort": "80"
- }
- ]
- },
- "SandboxKey": "/var/run/docker/netns/06028a9f57a1",
- "SecondaryIPAddresses": null,
- "SecondaryIPv6Addresses": null,
- "EndpointID": "b739a4a1db43851858368639c8368f19f1bcb69dd18c1ce9ea7326add61062c6",
- "Gateway": "172.17.0.1",
- "GlobalIPv6Address": "",
- "GlobalIPv6PrefixLen": 0,
- "IPAddress": "172.17.0.2",
- "IPPrefixLen": 16,
- "IPv6Gateway": "",
- "MacAddress": "02:42:ac:11:00:02",
- "Networks": {
- "bridge": {
- "IPAMConfig": null,
- "Links": null,
- "Aliases": null,
- "NetworkID": "b1d52afbc8d2245d7f710bb7861ecad854ac31ed7f50a45cb55389e27d1cd84c",
- "EndpointID": "b739a4a1db43851858368639c8368f19f1bcb69dd18c1ce9ea7326add61062c6",
- "Gateway": "172.17.0.1",
- "IPAddress": "172.17.0.2",
- "IPPrefixLen": 16,
- "IPv6Gateway": "",
- "GlobalIPv6Address": "",
- "GlobalIPv6PrefixLen": 0,
- "MacAddress": "02:42:ac:11:00:02"
- }
- }
- }
- }
- ]
- ~ $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement