airflowdockeroperator

Can i pull docker same image every time from git using dockerOperator in airlfow?


When i pull same docker image second time using dockeroperator, it is retrieving from local, but i want dockeroperator to pull image from repo every time, is it possible in airflow?


Solution

  • For the DockerOperator to pull the image on every run, set its force_pull parameter to True. See the docs.

    Note, Docker will not download the full image again if the local copy of the image is up to date.