Skip to content

Commit

Permalink
update docs about save/load
Browse files Browse the repository at this point in the history
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
  • Loading branch information
AkihiroSuda committed Dec 12, 2020
1 parent 1add5e0 commit f406659
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ Lots of commands and flags are currently missing. Pull requests are highly welco
## Features present in `nerdctl` but not present in Docker
- Namespacing as in `kubectl --namespace=<NS>`: `nerdctl --namespace=<NS> ps`
- [Lazy-pulling using Stargz Snapshotter](./docs/stargz.md): `nerdctl --snapshotter=stargz run`
- Exporting Docker/OCI dual-format archives: `nerdctl save`
- Importing OCI archives: `nerdctl load`

Features ported from Podman:
- Specifying a non-image rootfs: `nerdctl run -it --rootfs <ROOTFS> /bin/sh`
Expand Down
7 changes: 4 additions & 3 deletions load.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ import (
)

var loadCommand = &cli.Command{
Name: "load",
Usage: "Load an image from a tar archive or STDIN",
Action: loadAction,
Name: "load",
Usage: "Load an image from a tar archive or STDIN",
Description: "Supports both Docker Image Spec v1.2 and OCI Image Spec v1.0.",
Action: loadAction,
Flags: []cli.Flag{
&cli.StringFlag{
Name: "input",
Expand Down
7 changes: 4 additions & 3 deletions save.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ import (
)

var saveCommand = &cli.Command{
Name: "save",
Usage: "Save one or more images to a tar archive (streamed to STDOUT by default)",
Action: saveAction,
Name: "save",
Usage: "Save one or more images to a tar archive (streamed to STDOUT by default)",
Description: "The archive implements both Docker Image Spec v1.2 and OCI Image Spec v1.0.",
Action: saveAction,
Flags: []cli.Flag{
&cli.StringFlag{
Name: "output",
Expand Down

0 comments on commit f406659

Please sign in to comment.