mock
: will mock the docker client to use in the tests
joshuachp / dockrs Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Fetch the logs of a container
dockrs logs [OPTIONS] CONTAINER
Stop one or more running containers
dockrs stop [OPTIONS] CONTAINER [CONTAINER...]
Prepare two different pull request to show the difference between:
Focusing on :
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>{}
Docker containers report the following events:
Docker images report the following events:
Docker volumes report the following events:
Docker networks report the following events:
Docker daemons report the following events:
https://docs.docker.com/engine/reference/commandline/events/
Create and run a new container from an image
dockrs run [OPTIONS] IMAGE [COMMAND] [ARG...]
ref https://docs.docker.com/engine/reference/commandline/run/
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]Start one or more stopped containers
dockrs start [OPTIONS] CONTAINER [CONTAINER...]
Download an image from a registry
dockrs pull [OPTIONS] NAME[:TAG|@DIGEST]
ref https://docs.docker.com/engine/reference/commandline/pull/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.