Cannot use sqlite with the LocalExecutor [AIrflow]

  airflow, airflow-scheduler, docker

I am trying to restart the airflow scheduler using the following command

airflow scheduler

I am using docker. I went inside my docker image for airflow and opened the CLI for my airflow image. That is where I used this command.

It throws an exception

Traceback (most recent call last):
  File "/usr/local/bin/airflow", line 25, in <module>
    from airflow.configuration import conf
  File "/usr/local/lib/python3.6/site-packages/airflow/", line 31, in <module>
    from airflow.utils.log.logging_mixin import LoggingMixin
  File "/usr/local/lib/python3.6/site-packages/airflow/utils/", line 24, in <module>
    from .decorators import apply_defaults as _apply_defaults
  File "/usr/local/lib/python3.6/site-packages/airflow/utils/", line 36, in <module>
    from airflow import settings
  File "/usr/local/lib/python3.6/site-packages/airflow/", line 37, in <module>
    from airflow.configuration import conf, AIRFLOW_HOME, WEBSERVER_CONFIG  # NOQA F401
  File "/usr/local/lib/python3.6/site-packages/airflow/", line 731, in <module>
  File "/usr/local/lib/python3.6/site-packages/airflow/", line 421, in read
  File "/usr/local/lib/python3.6/site-packages/airflow/", line 213, in _validate
  File "/usr/local/lib/python3.6/site-packages/airflow/", line 247, in _validate_config_dependencies
    self.get('core', 'executor')))
airflow.exceptions.AirflowConfigException: error: cannot use sqlite with the LocalExecutor

I am looking for any way to restart the airflow scheduler.

Source: Docker Questions