Value of Airflow variable gets invalid on restarting docker container

I have installed airflow image on top of docker and thereafter started the container. Everything works fine and I can access the airflow UI from my local system.

I have a long list of dags and associated airflow variables at some other instance of airflow, copy of which is running in my local system. I have impoted all the variables.

Whenever I restart the airflow container, all the variables that I have imported during the previous container run get invalid like this.
enter image description here

Please help me understand what am I doing wrong.

Source: Docker Questions