forked from containerd/stargz-snapshotter
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable GPUs and networking in container during optimize
Currently, networking inside a container when optimizing through the ctr-remote tool is only available through CNI-based networking plugins, not through `net-host`. Furthermore, there is no option to enable GPUs inside the container when optimizing GPU-based images. This commit adds flags to the optimize command to enable both features. Changes: 1) Added `net-host` flag to enable to networking inside the container, similar to when using `ctr-remote run`. 2) Added `gpus` flag to enable GPU-based image optimization. 3) Changes to documentation explaining the above made changes. Signed-off-by: Rishabh Singhvi <rdpsin@amazon.com>
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters