pub struct SystemInfo {
Show 62 fields pub architecture: Option<String>, pub bridge_nf_ip_6_tables: Option<bool>, pub bridge_nf_iptables: Option<bool>, pub cpu_set: Option<bool>, pub cpu_shares: Option<bool>, pub cgroup_driver: Option<String>, pub cgroup_version: Option<String>, pub cluster_advertise: Option<String>, pub cluster_store: Option<String>, pub containerd_commit: Option<Commit>, pub containers: Option<isize>, pub containers_paused: Option<isize>, pub containers_running: Option<isize>, pub containers_stopped: Option<isize>, pub cpu_cfs_period: Option<bool>, pub cpu_cfs_quota: Option<bool>, pub debug: Option<bool>, pub default_address_pools: Option<Vec<SystemInfoDefaultAddressPoolsInlineItem, Global>>, pub default_runtime: Option<String>, pub docker_root_dir: Option<String>, pub driver: Option<String>, pub driver_status: Option<Vec<Vec<String, Global>, Global>>, pub experimental_build: Option<bool>, pub generic_resources: Option<Vec<GenericResourcesInlineItem, Global>>, pub http_proxy: Option<String>, pub https_proxy: Option<String>, pub id: Option<String>, pub i_pv_4_forwarding: Option<bool>, pub images: Option<isize>, pub index_server_address: Option<String>, pub init_binary: Option<String>, pub init_commit: Option<Commit>, pub isolation: Option<String>, pub kernel_memory_tcp: Option<bool>, pub kernel_version: Option<String>, pub labels: Option<Vec<String, Global>>, pub live_restore_enabled: Option<bool>, pub logging_driver: Option<String>, pub mem_total: Option<i64>, pub memory_limit: Option<bool>, pub ncpu: Option<isize>, pub n_events_listener: Option<isize>, pub n_fd: Option<isize>, pub n_goroutines: Option<isize>, pub name: Option<String>, pub no_proxy: Option<String>, pub os_type: Option<String>, pub os_version: Option<String>, pub oom_kill_disable: Option<bool>, pub operating_system: Option<String>, pub pids_limit: Option<bool>, pub plugins: Option<PluginsInfo>, pub product_license: Option<String>, pub registry_config: Option<RegistryServiceConfig>, pub runc_commit: Option<Commit>, pub runtimes: Option<HashMap<String, Runtime, RandomState>>, pub security_options: Option<Vec<String, Global>>, pub server_version: Option<String>, pub swap_limit: Option<bool>, pub swarm: Option<SwarmInfo>, pub system_time: Option<String>, pub warnings: Option<Vec<String, Global>>,
}

Fields§

§architecture: Option<String>

Hardware architecture of the host, as returned by the Go runtime (GOARCH).

A full list of possible values can be found in the Go documentation.

§bridge_nf_ip_6_tables: Option<bool>

Indicates if bridge-nf-call-ip6tables is available on the host.

§bridge_nf_iptables: Option<bool>

Indicates if bridge-nf-call-iptables is available on the host.

§cpu_set: Option<bool>

Indicates if CPUsets (cpuset.cpus, cpuset.mems) are supported by the host.

See cpuset(7)

§cpu_shares: Option<bool>

Indicates if CPU Shares limiting is supported by the host.

§cgroup_driver: Option<String>

The driver to use for managing cgroups.

§cgroup_version: Option<String>

The version of the cgroup.

§cluster_advertise: Option<String>

The network endpoint that the Engine advertises for the purpose of node discovery. ClusterAdvertise is a host:port combination on which the daemon is reachable by other hosts.


Deprecated: This field is only propagated when using standalone Swarm mode, and overlay networking using an external k/v store. Overlay networks with Swarm mode enabled use the built-in raft store, and this field will be empty.

§cluster_store: Option<String>

URL of the distributed storage backend.

The storage backend is used for multihost networking (to store network and endpoint information) and by the node discovery mechanism.


Deprecated: This field is only propagated when using standalone Swarm mode, and overlay networking using an external k/v store. Overlay networks with Swarm mode enabled use the built-in raft store, and this field will be empty.

§containerd_commit: Option<Commit>§containers: Option<isize>

Total number of containers on the host.

§containers_paused: Option<isize>

Number of containers with status "paused".

§containers_running: Option<isize>

Number of containers with status "running".

§containers_stopped: Option<isize>

Number of containers with status "stopped".

§cpu_cfs_period: Option<bool>

Indicates if CPU CFS(Completely Fair Scheduler) period is supported by the host.

§cpu_cfs_quota: Option<bool>

Indicates if CPU CFS(Completely Fair Scheduler) quota is supported by the host.

§debug: Option<bool>

Indicates if the daemon is running in debug-mode / with debug-level logging enabled.

§default_address_pools: Option<Vec<SystemInfoDefaultAddressPoolsInlineItem, Global>>

List of custom default address pools for local networks, which can be specified in the daemon.json file or dockerd option.

Example: a Base “10.10.0.0/16” with Size 24 will define the set of 256 10.10.[0-255].0/24 address pools.

§default_runtime: Option<String>

Name of the default OCI runtime that is used when starting containers.

The default can be overridden per-container at create time.

§docker_root_dir: Option<String>

Root directory of persistent Docker state.

Defaults to /var/lib/docker on Linux, and C:\ProgramData\docker on Windows.

§driver: Option<String>

Name of the storage driver in use.

§driver_status: Option<Vec<Vec<String, Global>, Global>>

Information specific to the storage driver, provided as “label” / “value” pairs.

This information is provided by the storage driver, and formatted in a way consistent with the output of docker info on the command line.


Note: The information returned in this field, including the formatting of values and labels, should not be considered stable, and may change without notice.

§experimental_build: Option<bool>

Indicates if experimental features are enabled on the daemon.

§generic_resources: Option<Vec<GenericResourcesInlineItem, Global>>§http_proxy: Option<String>

HTTP-proxy configured for the daemon. This value is obtained from the HTTP_PROXY environment variable. Credentials (user info component) in the proxy URL are masked in the API response.

Containers do not automatically inherit this configuration.

§https_proxy: Option<String>

HTTPS-proxy configured for the daemon. This value is obtained from the HTTPS_PROXY environment variable. Credentials (user info component) in the proxy URL are masked in the API response.

Containers do not automatically inherit this configuration.

§id: Option<String>

Unique identifier of the daemon.


Note: The format of the ID itself is not part of the API, and should not be considered stable.

§i_pv_4_forwarding: Option<bool>

Indicates IPv4 forwarding is enabled.

§images: Option<isize>

Total number of images on the host.

Both tagged and untagged (dangling) images are counted.

§index_server_address: Option<String>

Address / URL of the index server that is used for image search, and as a default for user authentication for Docker Hub and Docker Cloud.

§init_binary: Option<String>

Name and, optional, path of the docker-init binary.

If the path is omitted, the daemon searches the host’s $PATH for the binary and uses the first result.

§init_commit: Option<Commit>§isolation: Option<String>

Represents the isolation technology to use as a default for containers. The supported values are platform-specific.

If no isolation value is specified on daemon start, on Windows client, the default is hyperv, and on Windows server, the default is process.

This option is currently not used on other platforms.

§kernel_memory_tcp: Option<bool>

Indicates if the host has kernel memory TCP limit support enabled. This field is omitted if not supported.

Kernel memory TCP limits are not supported when using cgroups v2, which does not support the corresponding memory.kmem.tcp.limit_in_bytes cgroup.

§kernel_version: Option<String>

Kernel version of the host.

On Linux, this information obtained from uname. On Windows this information is queried from the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ registry value, for example “10.0 14393 (14393.1198.amd64fre.rs1_release_sec.170427-1353)”.

§labels: Option<Vec<String, Global>>

User-defined labels (key/value metadata) as set on the daemon.


Note: When part of a Swarm, nodes can both have daemon labels, set through the daemon configuration, and node labels, set from a manager node in the Swarm. Node labels are not included in this field. Node labels can be retrieved using the /nodes/(id) endpoint on a manager node in the Swarm.

§live_restore_enabled: Option<bool>

Indicates if live restore is enabled.

If enabled, containers are kept running when the daemon is shutdown or upon daemon start if running containers are detected.

§logging_driver: Option<String>

The logging driver to use as a default for new containers.

§mem_total: Option<i64>

Total amount of physical memory available on the host, in bytes.

§memory_limit: Option<bool>

Indicates if the host has memory limit support enabled.

§ncpu: Option<isize>

The number of logical CPUs usable by the daemon.

The number of available CPUs is checked by querying the operating system when the daemon starts. Changes to operating system CPU allocation after the daemon is started are not reflected.

§n_events_listener: Option<isize>

Number of event listeners subscribed.

§n_fd: Option<isize>

The total number of file Descriptors in use by the daemon process.

This information is only returned if debug-mode is enabled.

§n_goroutines: Option<isize>

The number of goroutines that currently exist.

This information is only returned if debug-mode is enabled.

§name: Option<String>

Hostname of the host.

§no_proxy: Option<String>

Comma-separated list of domain extensions for which no proxy should be used. This value is obtained from the NO_PROXY environment variable.

Containers do not automatically inherit this configuration.

§os_type: Option<String>

Generic type of the operating system of the host, as returned by the Go runtime (GOOS).

Currently returned values are “linux” and “windows”. A full list of possible values can be found in the Go documentation.

§os_version: Option<String>

Version of the host’s operating system


Note: The information returned in this field, including its very existence, and the formatting of values, should not be considered stable, and may change without notice.

§oom_kill_disable: Option<bool>

Indicates if OOM killer disable is supported on the host.

§operating_system: Option<String>

Name of the host’s operating system, for example: “Ubuntu 16.04.2 LTS” or “Windows Server 2016 Datacenter”

§pids_limit: Option<bool>

Indicates if the host kernel has PID limit support enabled.

§plugins: Option<PluginsInfo>§product_license: Option<String>

Reports a summary of the product license on the daemon.

If a commercial license has been applied to the daemon, information such as number of nodes, and expiration are included.

§registry_config: Option<RegistryServiceConfig>§runc_commit: Option<Commit>§runtimes: Option<HashMap<String, Runtime, RandomState>>

List of OCI compliant runtimes configured on the daemon. Keys hold the “name” used to reference the runtime.

The Docker daemon relies on an OCI compliant runtime (invoked via the containerd daemon) as its interface to the Linux kernel namespaces, cgroups, and SELinux.

The default runtime is runc, and automatically configured. Additional runtimes can be configured by the user and will be listed here.

§security_options: Option<Vec<String, Global>>

List of security features that are enabled on the daemon, such as apparmor, seccomp, SELinux, user-namespaces (userns), and rootless.

Additional configuration options for each security feature may be present, and are included as a comma-separated list of key/value pairs.

§server_version: Option<String>

Version string of the daemon.

Note: the standalone Swarm API returns the Swarm version instead of the daemon version, for example swarm/1.2.8.

§swap_limit: Option<bool>

Indicates if the host has memory swap limit support enabled.

§swarm: Option<SwarmInfo>§system_time: Option<String>

Current system-time in RFC 3339 format with nano-seconds.

§warnings: Option<Vec<String, Global>>

List of warnings / informational messages about missing features, or issues related to the daemon configuration.

These messages can be printed by the client as information to the user.

Trait Implementations§

source§

impl Clone for SystemInfo

source§

fn clone(&self) -> SystemInfo

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SystemInfo

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for SystemInfo

source§

fn deserialize<__D>( __deserializer: __D ) -> Result<SystemInfo, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq<SystemInfo> for SystemInfo

source§

fn eq(&self, other: &SystemInfo) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for SystemInfo

source§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for SystemInfo

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,