diff --git a/clientside/tmcc/linux/docker/dockerclient.pm b/clientside/tmcc/linux/docker/dockerclient.pm index 69898f96abd73ca20897f9e8bc9b74e80ea889af..84894015aeb17cec32d47830988a3d9b3c9a8235 100644 --- a/clientside/tmcc/linux/docker/dockerclient.pm +++ b/clientside/tmcc/linux/docker/dockerclient.pm @@ -1,6 +1,6 @@ #!/usr/bin/perl # -# Copyright (c) 2017 University of Utah and the Flux Group. +# Copyright (c) 2017, 2018 University of Utah and the Flux Group. # # {{{EMULAB-LICENSE # @@ -282,6 +282,7 @@ sub container_run($$$$;$$$) { } $args->{'Image'} = $image; $args->{'Cmd'} = $cmd; + $args->{'Tty'} = JSON::PP::false; my ($code,$content,$resp); ($code,$content) = $self->container_create($id,$args); if ($code) { diff --git a/clientside/tmcc/linux/docker/libvnode_docker.pm b/clientside/tmcc/linux/docker/libvnode_docker.pm index 1db1a92e53417415e67146fcace9db8c214cbd59..7184b772ca36629396e9aa46664f6c544cce73d1 100644 --- a/clientside/tmcc/linux/docker/libvnode_docker.pm +++ b/clientside/tmcc/linux/docker/libvnode_docker.pm @@ -4128,6 +4128,12 @@ sub analyzeImage($$) if ($needunlock); return $code; } + # Santize the output. For whatever reason(s), under heavy load, it + # comes with non-printable chars occasionally, and with CRLF. Odd. + #$buf =~ s/[^[:ascii:]]//g; + #$buf =~ s/\r\n//g; + $buf =~ s/[\000-\011\014\015-\037\176-\255]//g; + TBDebugTimeStamp("analyze.sh output:\n$buf"); open(FD,">/vms/contexts/analyze-$iid"); print FD $buf;