Skip to content

Instantly share code, notes, and snippets.

@swade1987
Created June 23, 2016 13:33
Show Gist options
  • Save swade1987/2e5937984c9d6057300f31c1335e24aa to your computer and use it in GitHub Desktop.
Save swade1987/2e5937984c9d6057300f31c1335e24aa to your computer and use it in GitHub Desktop.
ubuntu@ip-10-1-1-231:~$ docker inspect 6f396d9b99dc
[
{
"Id": "6f396d9b99dce92286af35716b54c36ea36ef52d5ad08455ea4943bc9c83a226",
"Created": "2016-06-22T21:12:17.051981483Z",
"Path": "/swarm",
"Args": [
"manage",
"-H",
"tcp://0.0.0.0:80",
"--replication",
"--advertise",
"10.1.1.231:80",
"consul://consul.ci.ukpds.org"
],
"State": {
"Status": "running",
"Running": true,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 1892,
"ExitCode": 0,
"Error": "",
"StartedAt": "2016-06-22T21:12:20.40003392Z",
"FinishedAt": "0001-01-01T00:00:00Z"
},
"Image": "sha256:a180b24e38eddf9e2133d07e9dc4c2ce7e74cb5adfe5bd34968a2b38f9685856",
"ResolvConfPath": "/var/lib/docker/containers/6f396d9b99dce92286af35716b54c36ea36ef52d5ad08455ea4943bc9c83a226/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/6f396d9b99dce92286af35716b54c36ea36ef52d5ad08455ea4943bc9c83a226/hostname",
"HostsPath": "/var/lib/docker/containers/6f396d9b99dce92286af35716b54c36ea36ef52d5ad08455ea4943bc9c83a226/hosts",
"LogPath": "/var/lib/docker/containers/6f396d9b99dce92286af35716b54c36ea36ef52d5ad08455ea4943bc9c83a226/6f396d9b99dce92286af35716b54c36ea36ef52d5ad08455ea4943bc9c83a226-json.log",
"Name": "/swarm",
"RestartCount": 0,
"Driver": "aufs",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": null,
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "default",
"PortBindings": {
"80/tcp": [
{
"HostIp": "",
"HostPort": "80"
}
]
},
"RestartPolicy": {
"Name": "no",
"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,
"StorageOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"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,
"BlkioIOps": 0,
"BlkioBps": 0,
"SandboxSize": 0
},
"GraphDriver": {
"Name": "aufs",
"Data": null
},
"Mounts": [
{
"Name": "4495031e04665d6237da5ecd17b00f3269dba59e96c7213b0f6fec3d37bc331b",
"Source": "/var/lib/docker/volumes/4495031e04665d6237da5ecd17b00f3269dba59e96c7213b0f6fec3d37bc331b/_data",
"Destination": "/.swarm",
"Driver": "local",
"Mode": "",
"RW": true,
"Propagation": ""
}
],
"Config": {
"Hostname": "6f396d9b99dc",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"2375/tcp": {},
"80/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"SWARM_HOST=:2375"
],
"Cmd": [
"manage",
"-H",
"tcp://0.0.0.0:80",
"--replication",
"--advertise",
"10.1.1.231:80",
"consul://consul.ci.ukpds.org"
],
"Image": "swarm",
"Volumes": {
"/.swarm": {}
},
"WorkingDir": "",
"Entrypoint": [
"/swarm"
],
"OnBuild": null,
"Labels": {}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "1d35defa0cfb0185d1cb4590d6c47d7133ae113c6296a7abdf64927bd76c47d2",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {
"2375/tcp": null,
"80/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "80"
}
]
},
"SandboxKey": "/var/run/docker/netns/1d35defa0cfb",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "ff89ea61845de45aa9d2a9fb7306daef03c29200b42a4cfdfa5238b3838f2de3",
"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": "a1e4379ecbf70349100a15f53f44130f729b4d6bcbbdc78cf63936bb99e6f7cf",
"EndpointID": "ff89ea61845de45aa9d2a9fb7306daef03c29200b42a4cfdfa5238b3838f2de3",
"Gateway": "172.17.0.1",
"IPAddress": "172.17.0.2",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "02:42:ac:11:00:02"
}
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment