Docker constantly restarting
Opened this issue · 4 comments
Hi,
I’m trying to get a tunnel setup and have run into a few issues. The first was that the command to create the cert.pen file failed with an access denied message. I resolved this with setting the owners and permissions as suggested in another issue on here and that seemed to work. The creating of the other 2 files worked and I can see the tunnel on the Cloudflare website but the Docker constantly restarts. The only message I get from docker logs is Use cloudflare tunnel run to start tunnel …UUID for the tunnel…
I have reapplied permissions just to make sure there aren’t issues there, I’ve also tried using bridges and a br0 network but none of those seem to help so I’m not sure what else to try.
I’m running Unraid 6.11.3
Thanks
What command are you using in your template to start the docker? You may be providing it a command that isn't actually starting the service correctly and thats causing the docker to crash.
I'm just using the Unraid app so it is mainly defaults but here's the command and inspect elements:
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
38ebc0914393b2e35eb7a674f74074c3be1425c78b4381a1c4b3e77abbd0ba6f cloudflare/cloudflared:latest "cloudflared --no-autoupdate d...........9" 24 hours ago Restarting (1) 15 seconds ago cloudflared
[
{
"Id": "38ebc0914393b2e35eb7a674f74074c3be1425c78b4381a1c4b3e77abbd0ba6f",
"Created": "2022-12-04T08:08:13.440655158Z",
"Path": "cloudflared",
"Args": [
"--no-autoupdate",
"d.........9"
],
"State": {
"Status": "restarting",
"Running": true,
"Paused": false,
"Restarting": true,
"OOMKilled": false,
"Dead": false,
"Pid": 0,
"ExitCode": 1,
"Error": "",
"StartedAt": "2022-12-05T08:29:47.34123113Z",
"FinishedAt": "2022-12-05T08:29:47.48494768Z"
},
"Image": "sha256:c4e3c41ef68742f7c2d07b6447cce7056f626ffd7803194bf55a80e6e222e82c",
"ResolvConfPath": "/var/lib/docker/containers/38ebc0914393b2e35eb7a674f74074c3be1425c78b4381a1c4b3e77abbd0ba6f/resolv.conf",
"HostnamePath": "/var/lib/docker/containers/38ebc0914393b2e35eb7a674f74074c3be1425c78b4381a1c4b3e77abbd0ba6f/hostname",
"HostsPath": "/var/lib/docker/containers/38ebc0914393b2e35eb7a674f74074c3be1425c78b4381a1c4b3e77abbd0ba6f/hosts",
"LogPath": "/var/lib/docker/containers/38ebc0914393b2e35eb7a674f74074c3be1425c78b4381a1c4b3e77abbd0ba6f/38ebc0914393b2e35eb7a674f74074c3be1425c78b4381a1c4b3e77abbd0ba6f-json.log",
"Name": "/cloudflared",
"RestartCount": 1458,
"Driver": "btrfs",
"Platform": "linux",
"MountLabel": "",
"ProcessLabel": "",
"AppArmorProfile": "",
"ExecIDs": null,
"HostConfig": {
"Binds": [
"/mnt/user/appdata/cloudflared:/home/nonroot/.cloudflared/:rw"
],
"ContainerIDFile": "",
"LogConfig": {
"Type": "json-file",
"Config": {
"max-file": "1",
"max-size": "50m"
}
},
"NetworkMode": "bridge",
"PortBindings": {},
"RestartPolicy": {
"Name": "unless-stopped",
"MaximumRetryCount": 0
},
"AutoRemove": false,
"VolumeDriver": "",
"VolumesFrom": null,
"CapAdd": null,
"CapDrop": null,
"CgroupnsMode": "host",
"Dns": [],
"DnsOptions": [],
"DnsSearch": [],
"ExtraHosts": null,
"GroupAdd": null,
"IpcMode": "private",
"Cgroup": "",
"Links": null,
"OomScoreAdj": 0,
"PidMode": "",
"Privileged": false,
"PublishAllPorts": false,
"ReadonlyRootfs": false,
"SecurityOpt": null,
"UTSMode": "",
"UsernsMode": "",
"ShmSize": 67108864,
"Runtime": "runc",
"ConsoleSize": [
0,
0
],
"Isolation": "",
"CpuShares": 0,
"Memory": 0,
"NanoCpus": 0,
"CgroupParent": "",
"BlkioWeight": 0,
"BlkioWeightDevice": [],
"BlkioDeviceReadBps": null,
"BlkioDeviceWriteBps": null,
"BlkioDeviceReadIOps": null,
"BlkioDeviceWriteIOps": null,
"CpuPeriod": 0,
"CpuQuota": 0,
"CpuRealtimePeriod": 0,
"CpuRealtimeRuntime": 0,
"CpusetCpus": "",
"CpusetMems": "",
"Devices": [],
"DeviceCgroupRules": null,
"DeviceRequests": null,
"KernelMemory": 0,
"KernelMemoryTCP": 0,
"MemoryReservation": 0,
"MemorySwap": 0,
"MemorySwappiness": null,
"OomKillDisable": false,
"PidsLimit": null,
"Ulimits": null,
"CpuCount": 0,
"CpuPercent": 0,
"IOMaximumIOps": 0,
"IOMaximumBandwidth": 0,
"MaskedPaths": [
"/proc/asound",
"/proc/acpi",
"/proc/kcore",
"/proc/keys",
"/proc/latency_stats",
"/proc/timer_list",
"/proc/timer_stats",
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware"
],
"ReadonlyPaths": [
"/proc/bus",
"/proc/fs",
"/proc/irq",
"/proc/sys",
"/proc/sysrq-trigger"
]
},
"GraphDriver": {
"Data": null,
"Name": "btrfs"
},
"Mounts": [
{
"Type": "bind",
"Source": "/mnt/user/appdata/cloudflared",
"Destination": "/home/nonroot/.cloudflared",
"Mode": "rw",
"RW": true,
"Propagation": "rprivate"
}
],
"Config": {
"Hostname": "38ebc0914393",
"Domainname": "",
"User": "nonroot",
"AttachStdin": false,
"AttachStdout": false,
"AttachStderr": false,
"Tty": false,
"OpenStdin": false,
"StdinOnce": false,
"Env": [
"HOST_HOSTNAME=Home",
"HOST_CONTAINERNAME=cloudflared",
"TZ=Europe/London",
"HOST_OS=Unraid",
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt"
],
"Cmd": [
"d.......9"
],
"Image": "cloudflare/cloudflared:latest",
"Volumes": null,
"WorkingDir": "/home/nonroot",
"Entrypoint": [
"cloudflared",
"--no-autoupdate"
],
"OnBuild": null,
"Labels": {
"net.unraid.docker.icon": "https://raw.githubusercontent.com/aeleos/cloudflared/main/cloudflare-icon.png",
"net.unraid.docker.managed": "dockerman",
"org.opencontainers.image.source": "https://github.com/cloudflare/cloudflared"
}
},
"NetworkSettings": {
"Bridge": "",
"SandboxID": "878706b2709da13499d9e5fa0c8a9565de96ec60fa42ed273259f8ce3955fa01",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": {},
"SandboxKey": "/var/run/docker/netns/878706b2709d",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"MacAddress": "",
"Networks": {
"bridge": {
"IPAMConfig": null,
"Links": null,
"Aliases": null,
"NetworkID": "bce1f838becad4799c9c95ac7fb57feb796cd0662d3219193cca86e2c37f0d8a",
"EndpointID": "",
"Gateway": "",
"IPAddress": "",
"IPPrefixLen": 0,
"IPv6Gateway": "",
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"MacAddress": "",
"DriverOpts": null
}
}
}
}
]
Still happening with default config in unraid.
Still happening with default config in unraid.
Did you fix this? Happening to me