I am running docker daemon under a service account.
[ts1@EP004 log]$ docker version
Client version: 1.7.0
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 0baf609
OS/Arch (client): linux/amd64
Server version: 1.9.1
Server API version: 1.21
Go version (server): go1.4.2
Git commit (server): a34a1d5
OS/Arch (server): linux/amd64
[ts1@EP004 log]$ cd /var/log/rancher/
-bash: cd: /var/log/rancher/: No such file or directory
[ts1@EP004 log]$ docker inspect 43e7bd817066
[
{
“Id”: “43e7bd81706651478207feda7c36a3373614fae30643de79dfa516826f87af3c”,
“Created”: “2016-04-07T09:12:37.940298505Z”,
“Path”: “/run.sh”,
“Args”: [
“http://ep004.dev.fwmrm.net:8080/v1/scripts/B6706404F3D8EAF7C0DA:1460019600000:nJpRiZ8Yhzn6ITb3rnO7S3dib78”,
“debug”
],
“State”: {
“Status”: “running”,
“Running”: true,
“Paused”: false,
“Restarting”: false,
“OOMKilled”: false,
“Dead”: false,
“Pid”: 12048,
“ExitCode”: 0,
“Error”: “”,
“StartedAt”: “2016-04-07T09:12:38.205893568Z”,
“FinishedAt”: “0001-01-01T00:00:00Z”
},
“Image”: “d15ea06f4165f4a07fb435600367f6955285add2c6c3e0229a69dd6656602df6”,
“ResolvConfPath”: “/export/docker/containers/43e7bd81706651478207feda7c36a3373614fae30643de79dfa516826f87af3c/resolv.conf”,
“HostnamePath”: “/export/docker/containers/43e7bd81706651478207feda7c36a3373614fae30643de79dfa516826f87af3c/hostname”,
“HostsPath”: “/export/docker/containers/43e7bd81706651478207feda7c36a3373614fae30643de79dfa516826f87af3c/hosts”,
“LogPath”: “/export/docker/containers/43e7bd81706651478207feda7c36a3373614fae30643de79dfa516826f87af3c/43e7bd81706651478207feda7c36a3373614fae30643de79dfa516826f87af3c-json.log”,
“Name”: “/awesome_knuth”,
“RestartCount”: 0,
“Driver”: “devicemapper”,
“ExecDriver”: “native-0.2”,
“MountLabel”: “”,
“ProcessLabel”: “”,
“AppArmorProfile”: “”,
“ExecIDs”: null,
“HostConfig”: {
“Binds”: [
"/var/run/docker.sock:/var/run/docker.sock",
"/var/lib/rancher:/var/lib/rancher"
],
“ContainerIDFile”: “”,
“LxcConf”: [],
“Memory”: 0,
“MemoryReservation”: 0,
“MemorySwap”: 0,
“KernelMemory”: 0,
“CpuShares”: 0,
“CpuPeriod”: 0,
“CpusetCpus”: “”,
“CpusetMems”: “”,
“CpuQuota”: 0,
“BlkioWeight”: 0,
“OomKillDisable”: false,
“MemorySwappiness”: null,
“Privileged”: true,
“PortBindings”: {},
“Links”: null,
“PublishAllPorts”: false,
“Dns”: null,
“DnsOptions”: null,
“DnsSearch”: null,
“ExtraHosts”: null,
“VolumesFrom”: null,
“Devices”: [],
“NetworkMode”: “bridge”,
“IpcMode”: “”,
“PidMode”: “”,
“UTSMode”: “”,
“CapAdd”: null,
“CapDrop”: null,
“GroupAdd”: null,
“RestartPolicy”: {
“Name”: “no”,
“MaximumRetryCount”: 0
},
“SecurityOpt”: null,
“ReadonlyRootfs”: false,
“Ulimits”: null,
“LogConfig”: {
“Type”: “json-file”,
“Config”: {}
},
“CgroupParent”: “”,
“ConsoleSize”: [
0,
0
],
“VolumeDriver”: “”
},
“GraphDriver”: {
“Name”: “devicemapper”,
“Data”: {
“DeviceId”: “66”,
“DeviceName”: “docker-253:16-105644035-43e7bd81706651478207feda7c36a3373614fae30643de79dfa516826f87af3c”,
“DeviceSize”: “107374182400”
}
},
“Volumes”: {
"/var/lib/rancher": “/var/lib/rancher”,
"/var/run/docker.sock": “/var/run/docker.sock”
},
“VolumesRW”: {
"/var/lib/rancher": true,
"/var/run/docker.sock": true
},
“Config”: {
“Hostname”: “43e7bd817066”,
“Domainname”: “”,
“User”: “”,
“AttachStdin”: false,
“AttachStdout”: false,
“AttachStderr”: false,
“Tty”: false,
“OpenStdin”: false,
“StdinOnce”: false,
“Env”: [
“CATTLE_AGENT_IP=192.168.0.183”,
“PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin”,
“HOST_DOCKER_SOCK=/var/run/docker.sock”,
“RANCHER_AGENT_IMAGE=rancher/agent:v0.11.0”
],
“Cmd”: [
“http://ep004.dev.fwmrm.net:8080/v1/scripts/B6706404F3D8EAF7C0DA:1460019600000:nJpRiZ8Yhzn6ITb3rnO7S3dib78”,
“debug”
],
“Image”: “rancher/agent:v0.11.0”,
“Volumes”: null,
“WorkingDir”: “”,
“Entrypoint”: [
"/run.sh"
],
“OnBuild”: null,
“Labels”: {
“io.rancher.container.system”: “rancher-agent”
},
“MacAddress”: “”,
“NetworkDisabled”: false,
“ExposedPorts”: null,
“VolumeDriver”: “”,
“Memory”: 0,
“MemorySwap”: 0,
“CpuShares”: 0,
“Cpuset”: “”
},
“NetworkSettings”: {
“Bridge”: “”,
“SandboxID”: “17408ba2c83cf1299b3d097e3a8af27515934b842a0111686eb1f06f892f22a4”,
“HairpinMode”: false,
“LinkLocalIPv6Address”: “”,
“LinkLocalIPv6PrefixLen”: 0,
“Ports”: {},
“SandboxKey”: “/var/run/docker/netns/17408ba2c83c”,
“SecondaryIPAddresses”: null,
“SecondaryIPv6Addresses”: null,
“EndpointID”: “41c3fc32f642d1edee95a34fb660510e376d79bdecd84b7cc599d53dbe48f390”,
“Gateway”: “172.17.42.1”,
“GlobalIPv6Address”: “”,
“GlobalIPv6PrefixLen”: 0,
“IPAddress”: “172.17.0.1”,
“IPPrefixLen”: 16,
“IPv6Gateway”: “”,
“MacAddress”: “02:42:ac:11:00:01”
}
}
I use the command copied from the GUI to run the agent.
The /var/log/rancher folder doesn’t exist at all. I think it might mean the main process of the agent didn’t get started at all.