docker_container: fix working_dir (#42857)

WorkingDir should be read from Config instead of HostConfig, check
https://docs.docker.com/engine/api/v1.37/#operation/ContainerInspect
This commit is contained in:
bhuztez 2018-08-23 01:42:56 +08:00 committed by ansibot
parent 0fabf2109f
commit dd8edf5ae2

View file

@ -1319,7 +1319,7 @@ class Container(DockerBaseClass):
expected_binds=host_config.get('Binds'),
volumes_from=host_config.get('VolumesFrom'),
volume_driver=host_config.get('VolumeDriver'),
working_dir=host_config.get('WorkingDir')
working_dir=config.get('WorkingDir')
)
differences = []