Giter Site home page Giter Site logo

dockrs's Introduction

dockrs

  • mock: will mock the docker client to use in the tests

dockrs's People

Contributors

joshuachp avatar harlem88 avatar

Watchers

 avatar Francesco Vaiani avatar  avatar

dockrs's Issues

Implement events command

Get real time events from the server

dockrs events [OPTIONS]

Also try writing a function that returns a channel of DockerEvent.

struct DockerEvent{
 object_type: ObjectType,
 event: Event,
 action: String
}
....

fn docker_events() -> Receiver<DockerEvent>{}

Object types

Containers

Docker containers report the following events:

  • attach
  • commit
  • copy
  • create
  • destroy
  • detach
  • die
  • exec_create
  • exec_detach
  • exec_die
  • exec_start
  • export
  • health_status
  • kill
  • oom
  • pause
  • rename
  • resize
  • restart
  • start
  • stop
  • top
  • unpause
  • update

Images

Docker images report the following events:

  • delete
  • import
  • load
  • pull
  • push
  • save
  • tag
  • untag

Volumes

Docker volumes report the following events:

  • create
  • destroy
  • mount
  • unmount

Networks

Docker networks report the following events:

  • create
  • connect
  • destroy
  • disconnect
  • remove

Daemons

Docker daemons report the following events:

  • reload

https://docs.docker.com/engine/reference/commandline/events/

Implement ps command

List containers

dockrs ps [OPTIONS]

Options:

  • -a --all: Show all containers (default shows just running)
  • --size: Show disk usage by container
  • -f --filtered: [id, name, exited, status, network]

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.