docker-cli/docs/reference/commandline/context_import.md
Sebastiaan van Stijn 803b9071e7
docs: fix, and touch-up "docker context" docs
Using `/var/run/docker.sock` as docker host is invalid, and causes
an error, so adding `unix://` to it.

In addition, we document the name of the context to go after the
options, so change the order in the examples.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-05-07 13:53:25 +02:00

19 lines
387 B
Markdown

---
title: "context import"
description: "The context import command description and usage"
keywords: "context, import"
---
# context import
```markdown
Usage: docker context import [OPTIONS] CONTEXT FILE|-
Import a context from a tar file
```
## Description
Imports a context previously exported with `docker context export`. To import
from stdin, use a hyphen (`-`) as filename.