Merge pull request #1873 from jessvalarezo/docs-readme

docs: add cio import
This commit is contained in:
Phil Estes 2017-12-04 19:17:13 -05:00 committed by GitHub
commit 4a662b2ccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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")