blob: 9ceea99a196e878807e2b103e9b7d4b1afed6458 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
use shiplift::Docker;
use tokio::prelude::Future;
fn main() {
env_logger::init();
let docker = Docker::new();
let fut = docker
.networks()
.list(&Default::default())
.map(|networks| {
for network in networks {
println!("network -> {:#?}", network);
}
})
.map_err(|e| eprintln!("Error: {}", e));
tokio::run(fut);
}
|