和之前那个issue不太一样...
我这里是判题服务器和web端在同一个主机上
[email protected]:/home/OnlineJudge/dockerfiles/judger# docker inspect d0ca0b419d29
[{
"AppArmorProfile": "",
"Args": [
"-c",
"bash /var/judger/code/dockerfiles/judger/run.sh"
],
"Config": {
"AttachStderr": false,
"AttachStdin": false,
"AttachStdout": false,
"Cmd": [
"/bin/sh",
"-c",
"bash /var/judger/code/dockerfiles/judger/run.sh"
],
"CpuShares": 0,
"Cpuset": "",
"Domainname": "",
"Entrypoint": null,
"Env": [
"rpc_token=c4318372f98f4c46ed3a32c16ee4d7a76c832886d887631c0294b3314f34edf1",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"DEBIAN_FRONTEND=noninteractive"
],
"ExposedPorts": {
"8080/tcp": {}
},
"Hostname": "d0ca0b419d29",
"Image": "qduoj/judger",
"Labels": {
"com.docker.compose.config-hash": "05431ef649584f2808acf17d5762c37d4154294a737e300bd8765b01386cb5a5",
"com.docker.compose.container-number": "1",
"com.docker.compose.oneoff": "False",
"com.docker.compose.project": "judger",
"com.docker.compose.service": "judger",
"com.docker.compose.version": "1.7.1"
},
"MacAddress": "",
"Memory": 0,
"MemorySwap": 0,
"NetworkDisabled": false,
"OnBuild": null,
"OpenStdin": false,
"PortSpecs": null,
"StdinOnce": false,
"Tty": false,
"User": "",
"Volumes": {
"/var/judger/code": {},
"/var/judger/code/judge/log": {},
"/var/judger/test_case": {}
},
"WorkingDir": "/var/judger/code/judge"
},
"Created": "2016-05-12T09:50:13.039379025Z",
"Driver": "aufs",
"ExecDriver": "native-0.2",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/home/OnlineJudge:/var/judger/code:rw",
"/home/log:/var/judger/code/judge/log:rw",
"/home/test_case:/var/judger/test_case:rw"
],
"CapAdd": null,
"CapDrop": null,
"CgroupParent": "",
"ContainerIDFile": "",
"CpuShares": 0,
"CpusetCpus": "",
"Devices": null,
"Dns": null,
"DnsSearch": null,
"ExtraHosts": null,
"IpcMode": "",
"Links": null,
"LogConfig": {
"Config": null,
"Type": "json-file"
},
"LxcConf": null,
"Memory": 0,
"MemorySwap": 0,
"NetworkMode": "",
"PidMode": "",
"PortBindings": {
"8080/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "8085"
}
]
},
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"RestartPolicy": {
"MaximumRetryCount": 0,
"Name": ""
},
"SecurityOpt": null,
"Ulimits": null,
"VolumesFrom": []
},
"HostnamePath": "/var/lib/docker/containers/d0ca0b419d293d76217fd2a456dbdbbd1971a9ff520cd37841d892ae21a7f80a/hostname",
"HostsPath": "/var/lib/docker/containers/d0ca0b419d293d76217fd2a456dbdbbd1971a9ff520cd37841d892ae21a7f80a/hosts",
"Id": "d0ca0b419d293d76217fd2a456dbdbbd1971a9ff520cd37841d892ae21a7f80a",
"Image": "f84e5f70479f4856c844838540cd3e4e4ca198e1c6a3f3bf13fb79b12f33e924",
"LogPath": "/var/lib/docker/containers/d0ca0b419d293d76217fd2a456dbdbbd1971a9ff520cd37841d892ae21a7f80a/d0ca0b419d293d76217fd2a456dbdbbd1971a9ff520cd37841d892ae21a7f80a-json.log",
"MountLabel": "",
"Name": "/judger_judger_1",
"NetworkSettings": {
"Bridge": "docker0",
"Gateway": "172.17.42.1",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "172.17.0.8",
"IPPrefixLen": 16,
"IPv6Gateway": "",
"LinkLocalIPv6Address": "fe80::42:acff:fe11:8",
"LinkLocalIPv6PrefixLen": 64,
"MacAddress": "02:42:ac:11:00:08",
"PortMapping": null,
"Ports": {
"8080/tcp": [
{
"HostIp": "0.0.0.0",
"HostPort": "8085"
}
]
}
},
"Path": "/bin/sh",
"ProcessLabel": "",
"ResolvConfPath": "/var/lib/docker/containers/d0ca0b419d293d76217fd2a456dbdbbd1971a9ff520cd37841d892ae21a7f80a/resolv.conf",
"RestartCount": 0,
"State": {
"Dead": false,
"Error": "",
"ExitCode": 0,
"FinishedAt": "0001-01-01T00:00:00Z",
"OOMKilled": false,
"Paused": false,
"Pid": 4131,
"Restarting": false,
"Running": true,
"StartedAt": "2016-05-12T09:50:13.345216836Z"
},
"Volumes": {
"/var/judger/code": "/home/OnlineJudge",
"/var/judger/code/judge/log": "/home/log",
"/var/judger/test_case": "/home/test_case"
},
"VolumesRW": {
"/var/judger/code": true,
"/var/judger/code/judge/log": true,
"/var/judger/test_case": true
}
}
]
http://r5.loli.io/RjYZRz.png: http://r5.loli.io/RjYZRz.png