From 655667527da60f933ef15f0ed6dc2fadcd6847c6 Mon Sep 17 00:00:00 2001
From: Jun Guo <blackhumour.gj@gmail.com>
Date: Thu, 17 Aug 2017 10:47:52 -0700
Subject: [PATCH] [docker] Fix ignore_image option not work issue. (#19039)

Currently the ignore_image option can be set, but can not work as it is
descripted in document. The reason is the code will check the difference
of configurations between current container and target image, and it
will mark the `different` to `True` when the image is different even we
set `ignore_image=true`, that will cause the container being re-create.
---
 lib/ansible/modules/cloud/docker/docker_container.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/ansible/modules/cloud/docker/docker_container.py b/lib/ansible/modules/cloud/docker/docker_container.py
index 2f2d7bb150d..6101fc9fe76 100644
--- a/lib/ansible/modules/cloud/docker/docker_container.py
+++ b/lib/ansible/modules/cloud/docker/docker_container.py
@@ -1288,7 +1288,6 @@ class Container(DockerBaseClass):
         # Map parameters to container inspect results
         config_mapping = dict(
             auto_remove=host_config.get('AutoRemove'),
-            image=config.get('Image'),
             expected_cmd=config.get('Cmd'),
             hostname=config.get('Hostname'),
             user=config.get('User'),