mirror of
https://github.com/apple/container.git
synced 2026-09-08 16:55:41 +00:00
Fixes #85 The virtualization bool on LinuxContainer mostly just forwards to VZVirtualMachineInstance which today would silently take your boolean and do nothing if the underlying platform doesn't have support for it. This is (to me) arguably worse than erroring, as it gives the client a false security that the setting is on, and they should have virt capabilities in the container/guest now. This change makes it so that we throw a ContainerizationError for this case, with a code of .unsupported so it's checkable by a user if they want more information on the "why".