Skip to content

Instantly share code, notes, and snippets.

@rebordao
Last active October 12, 2016 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rebordao/f71eba9c3cea547f309ae8e991bfaf08 to your computer and use it in GitHub Desktop.
Save rebordao/f71eba9c3cea547f309ae8e991bfaf08 to your computer and use it in GitHub Desktop.
Output of docker inspect <name of container>
[
{
"Id": "28f08de53fba9115283cfcd759866c30c9ee37912a5ab968182123e4aafa3023",
"Created": "2016-10-12T15:43:40.86284117Z",
"Path": "/init",
"Args": [],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 19469,
"ExitCode": 0,
"Error": "",
"StartedAt": "2016-10-12T15:43:41.260224981Z",
"FinishedAt": "0001-01-01T00:00:00Z"
},
"Image": "sha256:6f308e1bb50321aa0f7908a379b670f3fe7d6b1671cd0ca5bc5666787e6aa3ee",
"ResolvConfPath": "/var/lib/docker/containers/28f08de53fba9115283cfcd759866c30c9ee37912a5ab968182123e4aafa3023/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/28f08de53fba9115283cfcd759866c30c9ee37912a5ab968182123e4aafa3023/hostname",
"HostsPath": "/var/lib/docker/containers/28f08de53fba9115283cfcd759866c30c9ee37912a5ab968182123e4aafa3023/hosts",
"LogPath": "",
"Name": "/rdev",
"RestartCount": 0,
"Driver": "devicemapper",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": null,
"ContainerIDFile": "",
"LogConfig": {
"Type": "journald",
"Config": {}
},
"NetworkMode": "default",
"PortBindings": {
"8787/tcp": [
{
"HostIp": "",
"HostPort": "8787"
}
]
},
"RestartPolicy": {
"Name": "no",
"MaximumRetryCount": 0
},
"VolumeDriver": "",
"VolumesFrom": null,
"CapAdd": null,
"CapDrop": null,
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"ShmSize": 67108864,
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": null,
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": [],
"KernelMemory": 0,
"Memory": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": -1,
"OomKillDisable": false,
"PidsLimit": 0,
"Ulimits": null
},
"GraphDriver": {
"Name": "devicemapper",
"Data": {
"DeviceId": "116",
"DeviceName": "docker-202:1-25190640-0b802159c7388f34eb6ac88d2868fa8d7e7c378e52345f5936834ddc8ba64723",
"DeviceSize": "10737418240"
}
},
"Mounts": [
{
"Name": "77a23d4d95b9985a167d9db9ce1a9c467be498465c690b15bf4bff40d95b5d28",
"Source": "/var/lib/docker/volumes/77a23d4d95b9985a167d9db9ce1a9c467be498465c690b15bf4bff40d95b5d28/_data",
"Destination": "/home/rstudio",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
}
],
"Config": {
"Hostname": "28f08de53fba",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"8787/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/lib/rstudio-server/bin/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"LC_ALL=en_US.UTF-8",
"LANG=en_US.UTF-8",
"R_BASE_VERSION=3.3.1"
],
"Cmd": [
"/init"
],
"Image": "rocker/rstudio",
"Volumes": {
"/home/rstudio": {}
},
"WorkingDir": "",
"Entrypoint": null,
"OnBuild": null,
"Labels": {}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "ae34f636e1395f30be178eee6e6c6c92d4c61b7899437aafb86785879577a217",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {
"8787/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "8787"
}
]
},
"SandboxKey": "/var/run/docker/netns/ae34f636e139",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "43525eeff46c49c101b831b8b5e777823fc77af1242aa29bc9fa82a89257ed44",
"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": "58b1d3cf2f98ee7a642ef1ba53731f2c0f6085885bb77ad1dd6467db3e0e886d",
"EndpointID": "43525eeff46c49c101b831b8b5e777823fc77af1242aa29bc9fa82a89257ed44",
"Gateway": "172.17.0.1",
"IPAddress": "172.17.0.4",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:ac:11:00:04"
}
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment