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:
parent
0fabf2109f
commit
dd8edf5ae2
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue