Lines Matching full:runtime
19 """Base class for a container runtime implementation"""
32 """Determine whether the runtime is present on the system"""
37 """Runtime-specific handler to run a command in a container"""
41 """Runtime-specific handler to abort a running container"""
44 """Run a command in a runtime container"""
112 """Get a list of all the runtime names"""
113 return list(runtime.name for runtime in cls.runtimes)
117 """Get a single runtime class matching the given name"""
118 for runtime in cls.runtimes:
119 if runtime.name == name:
120 if not runtime.is_present():
121 raise ValueError(f"runtime not found: {name}")
122 return runtime
123 raise ValueError(f"unknown runtime: {name}")
127 """Find the first runtime present on the system"""
128 for runtime in cls.runtimes:
129 if runtime.is_present():
130 return runtime
131 raise ValueError("no runtime found")
150 cls = Runtimes.get(args.runtime) if args.runtime else Runtimes.find()
154 logger.debug("runtime: %s", cls.name)
178 '-r', '--runtime', choices=Runtimes.get_names(),
179 help="Container runtime name. If not specified, the first one found "