pub struct DockerStatus {
pub running: bool,
pub machine_id: Option<String>,
pub machine_running: bool,
pub socket: String,
pub socket_ready: bool,
pub api_port: Option<u16>,
pub version: Option<String>,
pub containers: Option<i64>,
pub images: Option<i64>,
pub mounts: Vec<String>,
pub disk: Option<String>,
pub disk_size: Option<u64>,
}Expand description
The Docker engine VM: whether it is up, and how to reach it.
bsdkrun runs one docker:dind microVM and serves its API on a host unix
socket, so the host’s own docker CLI drives the same engine.
Fields§
§running: bool§machine_id: Option<String>§machine_running: bool§socket: StringThe unix socket the docker CLI talks to.
socket_ready: bool§api_port: Option<u16>§version: Option<String>§containers: Option<i64>§images: Option<i64>§mounts: Vec<String>Host directories shared into the VM, each HOST:GUEST.
disk: Option<String>The dedicated image-store disk, when the VM has one.
disk_size: Option<u64>Its size in bytes — sparse, so the cap rather than the usage.
Implementations§
Source§impl DockerStatus
impl DockerStatus
pub fn from_graphql(s: &Value) -> DockerStatus
Trait Implementations§
Source§impl Clone for DockerStatus
impl Clone for DockerStatus
Source§fn clone(&self) -> DockerStatus
fn clone(&self) -> DockerStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DockerStatus
impl Debug for DockerStatus
Source§impl PartialEq for DockerStatus
impl PartialEq for DockerStatus
impl StructuralPartialEq for DockerStatus
Auto Trait Implementations§
impl Freeze for DockerStatus
impl RefUnwindSafe for DockerStatus
impl Send for DockerStatus
impl Sync for DockerStatus
impl Unpin for DockerStatus
impl UnsafeUnpin for DockerStatus
impl UnwindSafe for DockerStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more