pub async fn daemon_info(
cx: &Context,
field: &str,
context: Option<&str>,
) -> Result<String, NoAnswer>Expand description
docker info --format <field> ({{.ServerVersion}}, say), of the daemon context reaches
(the current one when None): the daemon answers this account. Docker 26 and older (Debian’s
docker.io) exit 0 from docker info when the daemon doesn’t answer, saying so on standard
error alone with an empty line on standard output: an empty answer is asked again of docker version, which fails with the reason (not running, or refused to this account).
§Errors
NoAnswer: why the daemon gave none.