Skip to content

Commit

Permalink
docs: add doc for nydusify commit command
Browse files Browse the repository at this point in the history
Signed-off-by: YuQiang <y_q_email@163.com>
  • Loading branch information
PerseidMeteor authored and imeoer committed Mar 14, 2024
1 parent ae842f9 commit f10782c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions docs/nydusify.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,28 @@ nydusify copy \

It supports copying OCI v1 or Nydus images, use the options `--all-platforms` / `--platform` to copy the images of specific platforms.

## Commit nydus image from container's changes

The nydusify commit command can commit a nydus image from a nydus container, like `nerdctl commit` command.

``` shell
nydusify convert \
--source myregistry/repo:tag \
--target myregistry/repo:tag-nydus

nerdctl --snapshotter nydus run \
-dt myregistry/repo:tag-nydus sh

nydusify commit \
--container containerID
--target myregistry/repo:tag-nydus-committed

nerdctl --snapshotter nydus run \
-dt myregistry/repo:tag-nydus-committed sh
```

The original container ID need to be a full container ID rather than an abbreviation.

## More Nydusify Options

See `nydusify convert/check/mount --help`
Expand Down

0 comments on commit f10782c

Please sign in to comment.