Merge pull request #366 from YannickJadoul/ignore-docker-rm
Ignore errors when cleaning up docker container in linux.py
This commit is contained in:
@@ -114,18 +114,18 @@ def build(options: BuildOptions) -> None:
|
|||||||
if not platform_configs:
|
if not platform_configs:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
shell_cmd = ['linux32', '/bin/bash'] if platform_tag.endswith("i686") else ['/bin/bash']
|
||||||
|
|
||||||
container_name = f'cibuildwheel-{uuid.uuid4()}'
|
container_name = f'cibuildwheel-{uuid.uuid4()}'
|
||||||
|
call(['docker', 'create',
|
||||||
|
'--env', 'CIBUILDWHEEL',
|
||||||
|
'--name', container_name,
|
||||||
|
'-i',
|
||||||
|
'-v', '/:/host', # ignored on CircleCI
|
||||||
|
docker_image,
|
||||||
|
'/bin/bash'])
|
||||||
|
|
||||||
try:
|
try:
|
||||||
shell_cmd = ['linux32', '/bin/bash'] if platform_tag.endswith("i686") else ['/bin/bash']
|
|
||||||
call(['docker', 'create',
|
|
||||||
'--env', 'CIBUILDWHEEL',
|
|
||||||
'--name', container_name,
|
|
||||||
'-i',
|
|
||||||
'-v', '/:/host', # ignored on CircleCI
|
|
||||||
docker_image,
|
|
||||||
'/bin/bash'])
|
|
||||||
|
|
||||||
call(['docker', 'cp', '.', container_name + ':/project'])
|
call(['docker', 'cp', '.', container_name + ':/project'])
|
||||||
|
|
||||||
call(['docker', 'start', container_name])
|
call(['docker', 'start', container_name])
|
||||||
|
|||||||
Reference in New Issue
Block a user