Fix chdir option. (#518)

This commit is contained in:
Felix Fontein
2022-12-02 06:48:39 +01:00
committed by GitHub
parent 549de87ab5
commit 6ccbde9f98
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -250,6 +250,9 @@ def main():
'Cmd': argv,
'Env': format_environment(env) if env is not None else None,
}
if chdir is not None:
data['WorkingDir'] = chdir
exec_data = client.post_json_to_json('/containers/{0}/exec', container, data=data)
exec_id = exec_data['Id']