-
Notifications
You must be signed in to change notification settings - Fork 580
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This still needs cleaning up. #169 Closes #137 Closes #154 Signed-off-by: Ben Firshman <[email protected]>
- Loading branch information
Showing
3 changed files
with
21 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package docker | ||
|
||
import ( | ||
"io" | ||
"os" | ||
"os/exec" | ||
) | ||
|
||
func ContainerLogsFollow(containerID string, out io.Writer) error { | ||
cmd := exec.Command("docker", "container", "logs", "--follow", containerID) | ||
cmd.Env = os.Environ() | ||
cmd.Stdout = out | ||
return cmd.Run() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters