1
0
mirror of https://github.com/containers/youki synced 2024-11-23 17:32:15 +01:00
youki/MirgationGuide.md

14 lines
968 B
Markdown

This contains information for migrating library versions.
## V0.1.0 -> v0.2.0
### libcontainer
- The `Rootless` struct has been re-named as `UserNamespaceConfig` , `RootlessIDMapper` has been re-named to `UserNamespaceIDMapper` , and correspondingly the `RootlessError` has been re-named to `UserNamespaceError` . This is due to the fact that the structure was to be used for containers when a new user namespace is to be created, and that is not strictly only for rootless uses. Accordingly, the fields of various structs has been updated to reflect this change :
- rootless (module name) -> user_ns
- Rootless::rootless_id_mapper -> UserNamespaceConfig::id_mapper
- LibcontainerError::Rootless -> LibcontainerError::UserNamespace
- ContainerBuilderImpl::rootless -> ContainerBuilderImpl::user_ns_config
- ContainerArgs::rootless -> ContainerArgs::user_ns_config
- Changes that will occur for properly running in rootless mode : TODO (@YJDoc2)