[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.
pull/28360/head
Jun Guo 7 years ago committed by Ryan Brown
parent e7b0849886
commit 655667527d

@ -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…
Cancel
Save