Erisa/cloudflared-docker

[ERROR] Use `cloudflared tunnel run` to start tunnel | docker-cloudflared-1 exited with code 1

maanisim opened this issue · 1 comments

user@server:~/docker$ sudo docker compose up                                                                                                                                        
[+] Running 7/7                                                                                                                                                                          
 ⠿ nginx Pulled                                                                                                                                                                     4.4s 
   ⠿ df9b9388f04a Already exists                                                                                                                                                    0.0s 
   ⠿ a285f0f83eed Pull complete                                                                                                                                                     1.7s 
   ⠿ e00351ea626c Pull complete                                                                                                                                                     1.7s 
   ⠿ 06f5cb628050 Pull complete                                                                                                                                                     1.8s 
   ⠿ 32261d4e220f Pull complete                                                                                                                                                     1.8s 
   ⠿ 9da77f8e409e Pull complete   
[+] Running 2/2
 ⠿ Container docker-nginx-1  Created                                                                                                                                                0.2s
 ⠿ Container cloudflared     Recreated                                                                                                                                              0.0s
Attaching to docker-cloudflared-1, docker-nginx-1, jellyfin
docker-nginx-1        | /docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
docker-nginx-1        | /docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
docker-nginx-1        | /docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
docker-nginx-1        | 10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
docker-nginx-1        | 10-listen-on-ipv6-by-default.sh: info: Enabled listen on IPv6 in /etc/nginx/conf.d/default.conf
docker-nginx-1        | /docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
docker-nginx-1        | /docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
docker-nginx-1        | /docker-entrypoint.sh: Configuration complete; ready for start up
docker-nginx-1        | 2022/05/21 10:53:48 [notice] 1#1: using the "epoll" event method
docker-nginx-1        | 2022/05/21 10:53:48 [notice] 1#1: nginx/1.21.6
docker-nginx-1        | 2022/05/21 10:53:48 [notice] 1#1: built by gcc 10.3.1 20211027 (Alpine 10.3.1_git20211027) 
docker-nginx-1        | 2022/05/21 10:53:48 [notice] 1#1: OS: Linux 5.15.0-30-generic
docker-nginx-1        | 2022/05/21 10:53:48 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
docker-nginx-1        | 2022/05/21 10:53:48 [notice] 1#1: start worker processes
docker-nginx-1        | 2022/05/21 10:53:48 [notice] 1#1: start worker process 32
docker-nginx-1        | 2022/05/21 10:53:48 [notice] 1#1: start worker process 33
docker-nginx-1        | 2022/05/21 10:53:48 [notice] 1#1: start worker process 34
docker-nginx-1        | 2022/05/21 10:53:48 [notice] 1#1: start worker process 35
docker-cloudflared-1  | Use `cloudflared tunnel run` to start tunnel c18d8a1f-f9f8-4bf6-8fXX-XXXXXXXXX
docker-cloudflared-1 exited with code 1

image

When creating a tunnel using this Docker image I get the above error, my configuration is correctly setup as I can run it directly via the CLI. However I wished to containerize this.

version: "2"

services:
  nginx:
    image: nginx:alpine

  cloudflared:
      image: erisamoe/cloudflared
      volumes:
        - ./cloudflared-config:/etc/cloudflared
      command: --hostname nginx.example.com --url http://nginx:80
      depends_on:
        - nginx

I suspect this may be due to lack of support of the tunnels being written in the new way.

Never mind it seems I can not read properly. #5 (comment)