summaryrefslogtreecommitdiffstats
path: root/examples/custom_host.rs
blob: 8b06eae0d8b3633e46a616d3b0f8482a0a0c0005 (plain)
1
2
3
4
5
6
7
8
9
10
use shiplift::Docker;

#[tokio::main]
async fn main() {
    let docker = Docker::host("http://yourhost".parse().unwrap());
    match docker.ping().await {
        Ok(pong) => println!("Ping: {}", pong),
        Err(e) => eprintln!("Error: {}", e),
    }
}