Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add doc for nydusify commit command #1557

Merged
merged 1 commit into from
Mar 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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