docker-command
Rust library for creating Docker commands.
Rather than speaking directly to the Docker daemon, this library produces commands that can be run in a subprocess to invoke the Docker client (or a compatible client such as Podman).
This crate depends on the command-run crate. That crate's logging
feature (which controls whether the log
crate is a dependency) can be
toggled with this crate's logging
feature (enabled by default).
Example
let output = auto
.ok_or?
.run
.enable_capture
.run?;
assert_eq!;
TODO
Only a few Docker commands are currently implemented, and many of the available options for those commands are not yet implemented. Contributions welcome!