use bandsocks::{Container, ContainerBuilder}; use tokio::runtime::Runtime; const IMAGE: &str = "alpine@sha256:d7342993700f8cd7aba8496c2d0e57be0666e80b4c441925fc6f9361fa81d10e"; async fn common() -> ContainerBuilder { let _ = env_logger::builder().is_test(true).try_init(); Container::pull(&IMAGE.parse().unwrap()) .await .expect("container pull") } #[test] fn pull() { Runtime::new().unwrap().block_on(async { common().await; }) } /* #[test] fn alpine_true() { Runtime::new().unwrap().block_on(async { let container = common().await.arg("/bin/true").spawn().unwrap(); let status = container.wait().await.unwrap(); assert_eq!(status.code(), Some(-1)); }) } */