title: Failed to fetch log file from worker while running docker operator
body: <p>Im trying to run simple DAG with docker-operator on airflow. Here is my DAG:</p>
  <pre><code>from airflow import DAG
  from airflow.operators.bash_operator import BashOperator
  from datetime import datetime, timedelta
  from airflow.providers.docker.operators.docker import DockerOperator
  
  default_args = {
  'owner'                 : 'airflow',
  'description'           : 'Use of the DockerOperator',
  'depend_on_past'        : False,
  'start_date'            : datetime(2018, 1, 3),
  'email_on_failure'      : False,
  'email_on_retry'        : False,
  'retries'               : 1,
  'retry_delay'           : timedelta(minutes=5)
  }
  with DAG('docker_dag', default_args=default_args, schedule_interval=&quot;* * * * *&quot;, catchup=False) as dag:
      t1 = BashOperator(
      task_id='print_current_date',
      bash_command='date'
      )
      t2 = DockerOperator(
      task_id='docker_command',
      image='centos:latest',
      api_version='auto',
      auto_remove=True,
      command=&quot;/bin/sleep 30&quot;,
      docker_url=&quot;unix://var/run/docker.sock&quot;,
      network_mode=&quot;bridge&quot;
      )
      t3 = BashOperator(
      task_id='print_hello',
      bash_command='echo &quot;hello world&quot;'
      )
  t1 &gt;&gt; t2 &gt;&gt; t3
  </code></pre>
  <p>The first task runs correct, but with docker-task i got this error:</p>
  <pre><code>*** Log file does not exist: ./logs/docker_dag/docker_command/2022-08-12T14:40:00+00:00/2.log
  *** Fetching from: http://airflow_docker_host:8793/log/docker_dag/docker_command/2022-08-12T14:40:00+00:00/2.log
  *** !!!! Please make sure that all your Airflow components (e.g. schedulers, webservers and workers) have the same 'secret_key' configured in 'webserver' section !!!!!
  ****** See more at https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html#secret-key
  ****** Failed to fetch log file from worker. 403 Client Error: Forbidden for url: http://airflow_docker_host:8793/log/docker_dag/docker_command/2022-08-12T14:40:00+00:00/2.log
  For more information check: https://httpstatuses.com/403
  </code></pre>
  <p>I have only one server where webserver, scheduler, and docker-daemon run. I have default SequentialExecutor</p>
  <p>Docker-configuration:</p>
  <pre><code>[airflow@airflow_docker_host .docker]$ cat config.json 
  { 
    &quot;proxies&quot;:
      { 
        &quot;default&quot;: 
          { 
            &quot;httpProxy&quot;: &quot;http://172.20.127.125:8080&quot;, 
            &quot;httpsProxy&quot;: &quot;https://172.20.127.125:8080&quot;, 
            &quot;noProxy&quot;: &quot;*.&lt;domain&gt;,127.0.0.0/8&quot; 
          } 
      } 
  }
  
  </code></pre>