Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

Commit

Permalink
Fix: include stderr output in Docker logs
Browse files Browse the repository at this point in the history
  • Loading branch information
eschultz authored Jun 19, 2016
1 parent 444c740 commit 4a94540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/dynamix.docker.manager/scripts/docker
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ array_shift($argv);
$colorize = ($argv[0] == 'logs');

if ($colorize) echo "<p style='text-align:center'><span class='error label'>Error</span><span class='warn label'>Warning</span><span class='system label'>System</span><span class='array label'>Array</span><span class='login label'>Login</span></p>\n";
$handle = popen('/usr/bin/docker "'.implode('" "',$argv).'"','r');
$handle = popen('/usr/bin/docker "'.implode('" "',$argv).'" 2>1&','r');
while (!feof($handle)) {
$line = fgets($handle);
if ($colorize) {
Expand Down

0 comments on commit 4a94540

Please sign in to comment.