@@ -407,7 +407,7 @@ void cleanup_docker(DOCKER_JOB_INFO &info, DOCKER_CONN &dc) {
407407
408408 // first containers
409409 //
410- retval = dc.command (" ps --all" , out);
410+ retval = dc.command (" ps --all" , out, true );
411411 if (retval) {
412412 fprintf (stderr, " Docker command failed: ps --all\n " );
413413 } else {
@@ -417,7 +417,7 @@ void cleanup_docker(DOCKER_JOB_INFO &info, DOCKER_CONN &dc) {
417417 if (!docker_is_boinc_name (name.c_str ())) continue ;
418418 if (info.container_present (name)) continue ;
419419 sprintf (cmd, " rm -f %s" , name.c_str ());
420- retval = dc.command (cmd, out2);
420+ retval = dc.command (cmd, out2, true );
421421 if (retval) {
422422 fprintf (stderr, " Docker command failed: %s\n " , cmd);
423423 continue ;
@@ -430,7 +430,7 @@ void cleanup_docker(DOCKER_JOB_INFO &info, DOCKER_CONN &dc) {
430430
431431 // then images
432432 //
433- retval = dc.command (" images" , out);
433+ retval = dc.command (" images" , out, true );
434434 if (retval) {
435435 fprintf (stderr, " Docker command failed: images\n " );
436436 } else {
@@ -440,7 +440,7 @@ void cleanup_docker(DOCKER_JOB_INFO &info, DOCKER_CONN &dc) {
440440 if (!docker_is_boinc_name (name.c_str ())) continue ;
441441 if (info.image_present (name)) continue ;
442442 sprintf (cmd, " image rm %s" , name.c_str ());
443- retval = dc.command (cmd, out2);
443+ retval = dc.command (cmd, out2, true );
444444 if (retval) {
445445 fprintf (stderr, " Docker command failed: %s\n " , cmd);
446446 continue ;
0 commit comments