mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-25 16:06:43 +00: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:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user