[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:
parent
e7b0849886
commit
655667527d
1 changed files with 0 additions and 1 deletions
|
@ -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'),
|
||||
|
|
Loading…
Reference in a new issue