feluelle commented on a change in pull request #4049: [AIRFLOW-3203] Fix 
DockerOperator & some operator test
URL: https://github.com/apache/airflow/pull/4049#discussion_r275384558
 
 

 ##########
 File path: airflow/operators/docker_operator.py
 ##########
 @@ -187,35 +188,28 @@ def execute(self, context):
                 tls=tls_config
             )
 
-        if ':' not in self.image:
-            image = self.image + ':latest'
-        else:
-            image = self.image
 
 Review comment:
   Hey @XD-DENG were you really certain about that? Because I noticed something 
weird when I use for example just `r-base` as an image name.
   
   The DockerOperator task pulled every image.
   
   ```
   r-base                                                     latest            
  62c848eeb175        2 weeks ago         649MB
   r-base                                                     3.5.3             
  62c848eeb175        2 weeks ago         649MB
   r-base                                                     3.5.2             
  880eb7da671b        5 weeks ago         655MB
   r-base                                                     3.5.1             
  bd9edc1a85ed        4 months ago        712MB
   r-base                                                     3.5.0             
  190658892827        9 months ago        692MB
   r-base                                                     3.4.4             
  d1325eaa28ad        11 months ago       667MB
   r-base                                                     3.4.3             
  d1e1c25485af        13 months ago       670MB
   r-base                                                     3.4.2             
  02d3b7e00020        17 months ago       651MB
   r-base                                                     3.4.1             
  0ab131e275e4        19 months ago       1.18GB
   r-base                                                     3.4.0             
  5a6c58403310        22 months ago       656MB
   r-base                                                     3.3.3             
  88436550cddc        2 years ago         635MB
   r-base                                                     3.3.2             
  38270dc4745b        2 years ago         635MB
   r-base                                                     3.3.1             
  7ba1baf9d8bb        2 years ago         657MB
   r-base                                                     3.3.0             
  8f62a54a58ab        2 years ago         970MB
   r-base                                                     3.2.5             
  ee4ea743f431        2 years ago         1.05GB
   r-base                                                     3.2.4             
  9d9c50e41475        3 years ago         1.07GB
   r-base                                                     3.2.3             
  1844ae3ec8d8        3 years ago         1.03GB
   r-base                                                     3.2.2             
  7201dfdf7e21        3 years ago         1.01GB
   r-base                                                     3.2.1             
  62e43f6f9a91        3 years ago         563MB
   r-base                                                     3.2.0             
  9adf6ba7ea84        3 years ago         552MB
   r-base                                                     3.1.3             
  8b37253aa5ea        4 years ago         517MB
   r-base                                                     3.1.2             
  803d5e0e0278        4 years ago         483MB
   ```
   
   `pip list` show me `docker                        3.7.2`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to