From 350e8156bf866d36a8d161a02b40cf64eac39424 Mon Sep 17 00:00:00 2001 From: Jess Valarezo Date: Mon, 4 Dec 2017 15:17:59 -0800 Subject: [PATCH] docs: add cio import Signed-off-by: Jess Valarezo --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8d3205e91..55adf0e6a 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,11 @@ containerd offers a full client package to help you integrate containerd into yo ```go -import "github.com/containerd/containerd" +import ( + "github.com/containerd/containerd" + "github.com/containerd/containerd/cio" +) + func main() { client, err := containerd.New("/run/containerd/containerd.sock") @@ -61,7 +65,7 @@ Namespaces allow multiple consumers to use the same containerd without conflicti To set a namespace for requests to the API: ```go -context = context.Background() +context = context.Background() // create a context for docker docker = namespaces.WithNamespace(context, "docker")