Giter Club home page Giter Club logo

docker-tail's Introduction

docker-tail

tail -f output from one or more docker containers, with each container's output prefixed with container name and colored to improve readability.

Implemented in a few lines of Bash with minimal dependencies.

Inspired by docker-compose.

screenshot

Requirements

  • bash (Tested with 3.2.57 on OSX, and 4.3.11 on Linux)
  • docker

Install

Several options for installation, in order of recommendation:

  • Using homebrew, install latest tagged release:
$ brew install joemiller/taps/docker-tail
  • Using homebrew, install master branch:
$ brew install joemiller/taps/docker-tail --HEAD
  • Or, clone and run make install:
$ git clone https://github.com/joemiller/docker-tail.git
$ cd docker-tail ; make install
  • Or, curl install!
$ curl https://raw.githubusercontent.com/joemiller/docker-tail/master/docker-tail >./docker-tail
$ chmod +x ./docker-tail

Uninstall

  • If installed via homebrew: brew uninstall docker-tail
  • If installed from make install: Run make uninstall

Usage

  • Tail the log output of specific containers:
$ docker-tail container1 container2
  • Tail the log output of all running containers:
$ docker-tail -a

Author

Joe Miller, https://github.com/joemiller

TODOs

  • makefile
  • shellcheck tests
  • bats tests
  • circle-ci
  • homebrew tap
  • readme

docker-tail's People

Contributors

joemiller avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.