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
pull/43520/merge
bhuztez 6 years ago committed by ansibot
parent 0fabf2109f
commit dd8edf5ae2

@ -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 = []

Loading…
Cancel
Save