--rm needs to be after the image or it would fail

When running an image in docker the image needs to be the last argument.

Change-Id: I1157b5a689c80339af2a3e10680d360b332c24f0
This commit is contained in:
Chmouel Boudjnah 2014-10-08 23:00:26 +02:00
parent 3091e11959
commit 9e8b302aa7
1 changed files with 2 additions and 2 deletions

View File

@ -158,10 +158,10 @@ class Runner(object):
docker_args = ['--privileged=true',
'--user=%s' % self.user_map['username'],
'-v', "%s:/src" % os.path.abspath('.'),
'-w', '/src',
self.test_image_name]
'-w', '/src']
if not self.args.keep_image:
docker_args.append('--rm')
docker_args.append(self.test_image_name)
for c in command:
docker_args.append(c)
self._docker_run(*docker_args)