From e49644edf23725fde80b997a2bb66624fed34d90 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Thu, 12 Mar 2020 09:00:40 +0000 Subject: [PATCH] Some docker fixes --- cibuildwheel/linux.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cibuildwheel/linux.py b/cibuildwheel/linux.py index fec6da5d..a7d75584 100644 --- a/cibuildwheel/linux.py +++ b/cibuildwheel/linux.py @@ -105,7 +105,7 @@ def build(project_dir, output_dir, test_command, before_test, test_requires, tes os.path.abspath(project_dir) + '/.', container_name + ':/project'], check=True) - subprocess.run(['docker', 'start', container_name]) + subprocess.run(['docker', 'start', container_name], check=True) for config in platform_configs: if dependency_constraints: @@ -241,6 +241,8 @@ def build(project_dir, output_dir, test_command, before_test, test_requires, tes subprocess.run(['docker', 'cp', container_name + ':/output/.', os.path.abspath(output_dir)], check=True) + + subprocess.run(['docker', 'stop', container_name], check=True) except subprocess.CalledProcessError: exit(1) finally: