Skip to content

Instantly share code, notes, and snippets.

@swade1987
Created June 23, 2016 14:03
Show Gist options
  • Save swade1987/30c7a0ae00db740d64c2b6f2cf3babbe to your computer and use it in GitHub Desktop.
Save swade1987/30c7a0ae00db740d64c2b6f2cf3babbe to your computer and use it in GitHub Desktop.
docker inspect traefik container
ubuntu@ip-10-1-131-61:~$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
a3b68f4b6b97 hello-world "/hello" 13 minutes ago Exited (0) 13 minutes ago angry_brattain
ae3196de0d89 emilevauge/traefik "/traefik -l DEBUG -c" About an hour ago Exited (1) 51 minutes ago traefik
2a8e88b7417d gliderlabs/registrator "/bin/registrator con" About an hour ago Up About an hour registrator
db5148388e1a swarm "/swarm join --advert" 16 hours ago Up 16 hours 2375/tcp swarm-agent
ubuntu@ip-10-1-131-61:~$ docker inspect ae3196de0d89
[
{
"Id": "ae3196de0d89531b8112af82c448b17929a6e60cbb98566d0f710f39a41f7128",
"Created": "2016-06-23T12:55:29.275033183Z",
"Path": "/traefik",
"Args": [
"-l",
"DEBUG",
"-c",
"/dev/null",
"--docker",
"--docker.domain=ci.ukpds.org",
"--docker.endpoint=tcp://10.1.66.229:80",
"--docker.watch",
"--web"
],
"State": {
"Status": "exited",
"Running": false,
"Paused": false,
"Restarting": false,
"OOMKilled": false,
"Dead": false,
"Pid": 0,
"ExitCode": 1,
"Error": "",
"StartedAt": "2016-06-23T12:55:29.72571526Z",
"FinishedAt": "2016-06-23T13:11:09.823378126Z"
},
"Image": "sha256:dbd8c037cd1626336a9d9728fd0a23f9267b5d0249bccf0c334c1ede023bc53a",
"ResolvConfPath": "/var/lib/docker/containers/ae3196de0d89531b8112af82c448b17929a6e60cbb98566d0f710f39a41f7128/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/ae3196de0d89531b8112af82c448b17929a6e60cbb98566d0f710f39a41f7128/hostname",
"HostsPath": "/var/lib/docker/containers/ae3196de0d89531b8112af82c448b17929a6e60cbb98566d0f710f39a41f7128/hosts",
"LogPath": "/var/lib/docker/containers/ae3196de0d89531b8112af82c448b17929a6e60cbb98566d0f710f39a41f7128/ae3196de0d89531b8112af82c448b17929a6e60cbb98566d0f710f39a41f7128-json.log",
"Name": "/traefik",
"RestartCount": 0,
"Driver": "aufs",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": null,
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {}
},
"NetworkMode": "ci",
"PortBindings": {
"80/tcp": [
{
"HostIp": "",
"HostPort": "80"
}
],
"8080/tcp": [
{
"HostIp": "",
"HostPort": "8080"
}
]
},
"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": [],
"Config": {
"Hostname": "ae3196de0d89",
"Domainname": "",
"User": "",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"ExposedPorts": {
"80/tcp": {},
"8080/tcp": {}
},
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
],
"Cmd": [
"-l",
"DEBUG",
"-c",
"/dev/null",
"--docker",
"--docker.domain=ci.ukpds.org",
"--docker.endpoint=tcp://10.1.66.229:80",
"--docker.watch",
"--web"
],
"Image": "emilevauge/traefik",
"Volumes": null,
"WorkingDir": "",
"Entrypoint": [
"/traefik"
],
"OnBuild": null,
"Labels": {}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "07d77eb0db3598c326c75c889517fdd9b7a2b2997b7152e4891f16bc01b1e4c0",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": null,
"SandboxKey": "/var/run/docker/netns/07d77eb0db35",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"ci": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "a198f8d32c1ab2d3300a31ef57039101e3189f759293c21069b7b699a999cfd9",
"EndpointID": "",
"Gateway": "",
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": ""
}
}
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment