Giter Site home page Giter Site logo

flota's Introduction

Flota

Flota (spanish for fleet) - A Docker CLI

About

A arg compatible overlay for the docker CLI.

Docker Usage

An automated build of flota is available on the public docker hub as jmayfield/flota and can be used like so...

docker run -it -v /var/run/docker.sock:/var/run/docker.sock jmayfield/flota ps -a

Requirements

  • Unix-oid Platform
  • Python 3.5+

Installation

python3 ./setup.py build
python3 ./setup.py install

Example

Basic usage follows the standard docker usage with nicer output..

$ flota ps
 CONTAINER ID  IMAGE   COMMAND    CREATED    STATUS         PORTS  NAMES            
 a6b8deb508b5  ubuntu  sleep 60   6 seconds  Up 6 seconds          boring_pasteur   

Help and usage via --help..

$ flota ps --help
usage: flota ps [-h] [-a] [--csv | --json | --md | --plain | --terminal]
                [--no-clip] [--table-width COLS] [--table-padding COLS]
                [--table-align JUSTIFY] [--columns COL_INDEX [COL_INDEX ...]]
                [--no-header] [--no-footer]

Process List.

optional arguments:
  -h, --help            show this help message and exit
  -a, --all             Show all containers (default shows just running)

table output format:
  Selection of output formats for table display.  The default behavior is to
  detect the output device's capabilities.

  --csv                 Generate CSV (comma delimited) output of the table.
  --json                Generate JSON output of the table.
  --md                  Render Markdown text format output of the table.
  --plain               Render output without any special formatting.
  --terminal            Render a table designed to fit/fill a terminal. This
                        renderer produces the most human friendly output when on a
                        terminal device.

table render settings:
  Overrides for table render settings.

  --no-clip             Do not clip the table output to fit the screen.
  --table-width COLS    Specify the table width in columns.
  --table-padding COLS  Specify whitespace padding for each table column in
                        characters.
  --table-align JUSTIFY
                        Table column justification.

table filters:
  Options for filtering the table display.

  --columns COL_INDEX [COL_INDEX ...]
                        Only show specific columns.
  --no-header           Hide table header.
  --no-footer           Hide table footer.

CSV output..

$ flota ps --csv
CONTAINER ID,IMAGE,COMMAND,CREATED,STATUS,PORTS,NAMES
7eb3b70d3894,ubuntu,sleep 60,17 seconds,Up 17 seconds,,sharp_euler
a6b8deb508b5,ubuntu,sleep 60,50 seconds,Up 50 seconds,,boring_pasteur

Markdown output..

$ flota ps --md
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7eb3b70d3894 ubuntu sleep 60 25 seconds Up 25 seconds sharp_euler
a6b8deb508b5 ubuntu sleep 60 58 seconds Up 58 seconds boring_pasteur

flota's People

Contributors

mayfield avatar

Stargazers

 avatar

Watchers

 avatar James Cloos 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.