Skip to content

Commit

Permalink
Merge pull request #601 from daiyongxuan/main
Browse files Browse the repository at this point in the history
docs: fix incorrect file path for nginx result file
  • Loading branch information
imeoer authored Jul 5, 2024
2 parents 71ab64a + 1182518 commit 831f849
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/optimize_nydus_image.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ crictl run nginx.yaml pod.yaml

```

The result file for the nginx image is `/opt/nri/optimizer/results/nginx:latest`.
The result file for the nginx image is `/opt/nri/optimizer/results/library/nginx:latest`.

## Build Nydus Image with Optimizer's Suggestions

Expand All @@ -125,7 +125,7 @@ sudo nydusify convert --source nginx --target sctb512/nginx:nydusv6 --fs-version
With the `--prefetch-patterns` argument, we can specify the list of files to be written in the front of the nydus image and be prefetched in order when starting a container.

```console
sudo nydusify convert --source nginx --target sctb512/nginx:optimized-nydusv6 --fs-version 6 --prefetch-patterns < /opt/nri/optimizer/results/nginx:latest
sudo nydusify convert --source nginx --target sctb512/nginx:optimized-nydusv6 --fs-version 6 --prefetch-patterns < /opt/nri/optimizer/results/library/nginx:latest
```

On a host with nydus-snapshotter installed and configured properly, start a container with an optimized nydus image.
Expand Down

0 comments on commit 831f849

Please sign in to comment.