class Crysco::Container
- Crysco::Container
- Reference
- Object
Defined in:
container.crConstant Summary
-
NAMESPACE_FLAGS =
(((Syscalls::ProcFlags::CLONE_NEWNS | Syscalls::ProcFlags::CLONE_NEWCGROUP) | Syscalls::ProcFlags::CLONE_NEWIPC) | Syscalls::ProcFlags::CLONE_NEWNET) | Syscalls::ProcFlags::CLONE_NEWUTS
-
The flags specify what the cloned process can do. These allow some control overrmounts, IPC data structures, network devices and hostname. CLONE_NEWPID is specified separately.
Constructors
-
.spawn(config : ContainerConfig, log_level : Log::Severity) : Container
Creates container (process) with different properties than its parent e.g.
Instance Method Summary
- #child_start(config : ContainerConfig) : Bool
-
#cleanup
should be called from the parent process
- #pid : Int32
- #wait
Constructor Detail
Creates container (process) with different properties than its parent e.g. mount to different dir, different hostname, etc... All these requirements are specified by the flags we pass to clone()