1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

[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.
This commit is contained in:
Jun Guo 2017-08-17 10:47:52 -07:00 committed by Ryan Brown
parent e7b0849886
commit 655667527d

View file

@ -1288,7 +1288,6 @@ class Container(DockerBaseClass):
# Map parameters to container inspect results # Map parameters to container inspect results
config_mapping = dict( config_mapping = dict(
auto_remove=host_config.get('AutoRemove'), auto_remove=host_config.get('AutoRemove'),
image=config.get('Image'),
expected_cmd=config.get('Cmd'), expected_cmd=config.get('Cmd'),
hostname=config.get('Hostname'), hostname=config.get('Hostname'),
user=config.get('User'), user=config.get('User'),