From a848a319b1f9c4b9974ac8929536d81027d7de58 Mon Sep 17 00:00:00 2001 From: Philipp Arndt <2f.mail@gmx.de> Date: Mon, 31 Jan 2022 16:41:46 +0100 Subject: [PATCH] fix usage example --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9451620..5ec739e 100644 --- a/README.md +++ b/README.md @@ -44,10 +44,11 @@ Enter `https://github.com/alexsteinerde/docker-client-swift.git` for the URL. ## Usage Example ```swift let client = DockerClient() -let image = try client.images.pullImage(imageName: "hello-world:latest").wait() -let container = try! client.containers.createContainer(image: image).wait() +let image = try client.images.pullImage(byIdentifier: "hello-world:latest").wait() +let container = try client.containers.createContainer(image: image).wait() try container.start(on: client).wait() let output = try container.logs(on: client).wait() +try client.syncShutdown() print(output) ```