mirror of
https://github.com/containers/youki
synced 2026-10-21 02:20:24 +02:00
* Support `--empty-ns` checkpoint option Pass --empty-ns from the CLI to CRIU so the network namespace is created empty on restore instead of being dumped. Youki does not manage network devices, so their external dependencies cannot be described to CRIU. Runc sets this unconditionally for the same reason. To verifty the functionality, contest check the existence of netdev-*.img which holds the network devices of a dumped namespace. Signed-off-by: donkomura <koiru3822fs@gmail.com> * Reject unsupported namespaces for --empty-ns Only `network` namespace is supported for empty-ns option, but the given value was not validated. Add the check and reject others to match runc. Also document that `network` applies even without the flag. Signed-off-by: donkomura <koiru3822fs@gmail.com> --------- Signed-off-by: donkomura <koiru3822fs@gmail.com>
liboci-cli
This is a crate to parse command line arguments for OCI container runtimes as specified in the OCI Runtime Command Line Interface.
Implemented subcommands
| Command | liboci-cli | CLI Specification | runc | crun | youki |
|---|---|---|---|---|---|
| create | ✅ | ✅ | ✅ | ✅ | ✅ |
| start | ✅ | ✅ | ✅ | ✅ | ✅ |
| state | ✅ | ✅ | ✅ | ✅ | ✅ |
| kill | ✅ | ✅ | ✅ | ✅ | ✅ |
| delete | ✅ | ✅ | ✅ | ✅ | ✅ |
| checkpoint | ✅ | ✅ | |||
| events | ✅ | ✅ | ✅ | ||
| exec | ✅ | ✅ | ✅ | ✅ | |
| features | ✅ | ✅ | |||
| list | ✅ | ✅ | ✅ | ✅ | |
| pause | ✅ | ✅ | ✅ | ✅ | |
| ps | ✅ | ✅ | ✅ | ✅ | |
| restore | ✅ | ✅ | |||
| resume | ✅ | ✅ | ✅ | ✅ | |
| run | ✅ | ✅ | ✅ | ✅ | |
| spec | ✅ | ✅ | ✅ | ✅ | |
| update | ✅ | ✅ |