您的位置:首页 > 运维架构 > Docker

查看docker应用信息

2015-06-22 00:00 986 查看
摘要: docker

[root@WUSHUU-TAIR-RDB ~]# docker logs -f dongchao622
/usr/lib/python2.7/site-packages/supervisor/options.py:295: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
'Supervisord is running as root and it is searching '
2015-06-22 14:30:47,790 CRIT Supervisor running as root (no user in config file)
2015-06-22 14:30:47,804 WARN Included extra file "/etc/supervisord.d/supervisord.ini" during parsing
Unlinking stale socket /var/tmp/supervisor.sock
2015-06-22 14:30:48,213 INFO RPC interface 'supervisor' initialized
2015-06-22 14:30:48,213 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2015-06-22 14:30:48,213 INFO supervisord started with pid 1
2015-06-22 14:30:49,227 INFO spawned: 'wushuu_manager.sh' with pid 14
2015-06-22 14:30:49,229 INFO spawned: 'nginx' with pid 15
2015-06-22 14:30:49,230 INFO spawned: 'sshd' with pid 16
2015-06-22 14:30:49,232 INFO spawned: 'php-fpm' with pid 17
2015-06-22 14:30:49,234 INFO spawned: 'mysql' with pid 18
2015-06-22 14:30:50,236 INFO success: wushuu_manager.sh entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-06-22 14:30:50,237 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-06-22 14:30:50,237 INFO success: sshd entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-06-22 14:30:50,237 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-06-22 14:30:50,237 INFO success: mysql entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-06-22 14:30:50,915 INFO exited: wushuu_manager.sh (exit status 0; expected)
2015-06-22 14:30:51,422 INFO exited: nginx (exit status 0; expected)
2015-06-22 15:50:43,689 CRIT reaped unknown pid 224)

[root@WUSHUU-TAIR-RDB ~]# docker port dongchao622
22/tcp -> 0.0.0.0:4511
3306/tcp -> 0.0.0.0:4455
80/tcp -> 0.0.0.0:8033

[root@WUSHUU-TAIR-RDB ~]# docker inspect b5b6bea06d18
[{
"AppArmorProfile": "",
"Args": [],
"Config": {
"AttachStderr": false,
"AttachStdin": false,
"AttachStdout": false,
"Cmd": [
"/usr/bin/supervisord"
],
"CpuShares": 0,
"Cpuset": "",
"Domainname": "",
"Entrypoint": null,
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"NOTVISIBLE=\"in users profile\""
],
"ExposedPorts": {
"22/tcp": {},
"3306/tcp": {},
"80/tcp": {}
},
"Hostname": "b5b6bea06d18",
"Image": "ac91fc876753",
"Labels": {},
"MacAddress": "56:84:7b:ff:97:98",
"Memory": 0,
"MemorySwap": 0,
"NetworkDisabled": false,
"OnBuild": null,
"OpenStdin": false,
"PortSpecs": null,
"StdinOnce": false,
"Tty": false,
"User": "",
"Volumes": null,
"WorkingDir": ""
},
"Created": "2015-06-22T06:30:29.385834875Z",
"Driver": "devicemapper",
"ExecDriver": "native-0.2",
"ExecIDs": null,
"HostConfig": {
"Binds": null,
"CapAdd": null,
"CapDrop": null,
"CgroupParent": "",
"ContainerIDFile": "",
"CpuShares": 0,
"CpusetCpus": "",
"Devices": [],
"Dns": null,
"DnsSearch": null,
"ExtraHosts": null,
"IpcMode": "",
"Links": null,
"LogConfig": {
"Config": null,
"Type": "json-file"
},
"LxcConf": [],
"Memory": 0,
"MemorySwap": 0,
"MountRun": true,
"NetworkMode": "bridge",
"PidMode": "",
"PortBindings": {
"22/tcp": [
{
"HostIp": "",
"HostPort": "4511"
}
],
"3306/tcp": [
{
"HostIp": "",
"HostPort": "4455"
}
],
"80/tcp": [
{
"HostIp": "",
"HostPort": "8033"
}
]
},
"Privileged": false,
"PublishAllPorts": true,
"ReadonlyRootfs": false,
"RestartPolicy": {
"MaximumRetryCount": 0,
"Name": "no"
},
"SecurityOpt": null,
"Ulimits": null,
"VolumesFrom": null
},
"HostnamePath": "/var/lib/docker/containers/b5b6bea06d1819ba4a3a886b5f07f154dbfbe7eada6dbed22d8d171af5c4f24e/hostname",
"HostsPath": "/var/lib/docker/containers/b5b6bea06d1819ba4a3a886b5f07f154dbfbe7eada6dbed22d8d171af5c4f24e/hosts",
"Id": "b5b6bea06d1819ba4a3a886b5f07f154dbfbe7eada6dbed22d8d171af5c4f24e",
"Image": "ac91fc876753bf3758b1c2238df554da5979dd4330e9ef3887d6473064a349ba",
"LogPath": "/var/lib/docker/containers/b5b6bea06d1819ba4a3a886b5f07f154dbfbe7eada6dbed22d8d171af5c4f24e/b5b6bea06d1819ba4a3a886b5f07f154dbfbe7eada6dbed22d8d171af5c4f24e-json.log",
"MountLabel": "",
"Name": "/dongchao622",
"NetworkSettings": {
"Bridge": "docker0",
"Gateway": "172.17.42.1",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "172.17.0.1",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"LinkLocalIPv6Address": "fe80::5484:7bff:feff:9798",
"LinkLocalIPv6PrefixLen": 64,
"MacAddress": "56:84:7b:ff:97:98",
"PortMapping": null,
"Ports": {
"22/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "4511"
}
],
"3306/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "4455"
}
],
"80/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "8033"
}
]
}
},
"Path": "/usr/bin/supervisord",
"ProcessLabel": "",
"ResolvConfPath": "/var/lib/docker/containers/b5b6bea06d1819ba4a3a886b5f07f154dbfbe7eada6dbed22d8d171af5c4f24e/resolv.conf",
"RestartCount": 0,
"State": {
"Dead": false,
"Error": "",
"ExitCode": 0,
"FinishedAt": "0001-01-01T00:00:00Z",
"OOMKilled": false,
"Paused": false,
"Pid": 25144,
"Restarting": false,
"Running": true,
"StartedAt": "2015-06-22T06:30:46.417084873Z"
},
"Volumes": {},
"VolumesRW": {},
"VolumesRelabel": {}
}
]
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  docker