use docker_command::*;
use std::path::Path;
#[test]
fn test_example() -> Result<(), command_run::Error> {
let output = Docker::new()
.run(RunOpt {
image: "alpine:latest".into(),
command: Some(Path::new("echo").into()),
args: vec!["hello".into(), "world".into()],
..Default::default()
})
.run()?;
assert_eq!(output.stdout_string_lossy(), "hello world\n");
Ok(())
}