docker_engine_api 0.1.1

A simple way to interact with the Docker Engine API
Documentation
Build #729256 2023-01-26 05:22:16

# rustc version rustc 1.69.0-nightly (c18a5e8a5 2023-01-25)

# docs.rs version docsrs 0.6.0 (3b562799 2023-01-23)

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/docker_engine_api-0.1.1/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/docker_engine_api-0.1.1/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "3221225472" "--cpus" "3" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d532c2baa59a8a48e45c3be7eb049f77ac5a58a7a6514a58a8e878df1c3d03d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "-Z" "unstable-options" "--config" "build.rustdocflags=[\"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20230125-1.69.0-nightly-c18a5e8a5\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--disable-per-crate-search\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j3" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 3e49abd6e4b445921db35be546068612ab135cea5b4f6b7065da7877ac936f61 [INFO] running `Command { std: "docker" "start" "-a" "3e49abd6e4b445921db35be546068612ab135cea5b4f6b7065da7877ac936f61", kill_on_drop: false }` [INFO] [stderr] warning: Target filter specified, but no targets matched. This is a no-op [INFO] [stderr] Documenting docker_engine_api v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] warning: type `LIST_CONTAINERS_RETURN` should have an upper camel case name [INFO] [stderr] --> src/api.rs:12:10 [INFO] [stderr] | [INFO] [stderr] 12 | pub type LIST_CONTAINERS_RETURN = Vec<Container>; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ListContainersReturn` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stderr] [INFO] [stderr] warning: type `CREATE_CONTAINER_RETURN` should have an upper camel case name [INFO] [stderr] --> src/api.rs:16:10 [INFO] [stderr] | [INFO] [stderr] 16 | pub type CREATE_CONTAINER_RETURN = CreateContainerResponse; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `CreateContainerReturn` [INFO] [stderr] [INFO] [stderr] warning: type `LIST_PROCESSES_RETURN` should have an upper camel case name [INFO] [stderr] --> src/api.rs:25:10 [INFO] [stderr] | [INFO] [stderr] 25 | pub type LIST_PROCESSES_RETURN = ContainerProcessesResponse; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `ListProcessesReturn` [INFO] [stderr] [INFO] [stderr] warning: type `GET_CONTAINER_LOGS_RETURN` should have an upper camel case name [INFO] [stderr] --> src/api.rs:30:10 [INFO] [stderr] | [INFO] [stderr] 30 | pub type GET_CONTAINER_LOGS_RETURN = String; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `GetContainerLogsReturn` [INFO] [stderr] [INFO] [stderr] warning: type `GET_STATS_CONTAINER_RETURN` should have an upper camel case name [INFO] [stderr] --> src/api.rs:38:10 [INFO] [stderr] | [INFO] [stderr] 38 | pub type GET_STATS_CONTAINER_RETURN = Stats; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to upper camel case: `GetStatsContainerReturn` [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/container_service.rs:129:38 [INFO] [stderr] | [INFO] [stderr] 129 | ...Docker API refenrece[https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerCreate] for more information. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerCreate>` [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] = note: `#[warn(rustdoc::bare_urls)]` on by default [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/container_service.rs:179:38 [INFO] [stderr] | [INFO] [stderr] 179 | ...Docker API reference[https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerInspect] for more information. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerInspect>` [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/container_service.rs:221:38 [INFO] [stderr] | [INFO] [stderr] 221 | /// See the Docker API reference[https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerStart] for more information. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerStart>` [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/container_service.rs:264:38 [INFO] [stderr] | [INFO] [stderr] 264 | /// See the Docker API reference[https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerStop] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerStop>` [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/container_service.rs:306:38 [INFO] [stderr] | [INFO] [stderr] 306 | ...Docker API reference[https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerRestart] for more information. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerRestart>` [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/container_service.rs:348:38 [INFO] [stderr] | [INFO] [stderr] 348 | /// See the Docker API reference[https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerKill] for more information. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerKill>` [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/container_service.rs:393:38 [INFO] [stderr] | [INFO] [stderr] 393 | /// See the Docker API reference[https://docs.docker.com/engine/api/v1.41/#operation/ContainerDelete] for more information. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://docs.docker.com/engine/api/v1.41/#operation/ContainerDelete>` [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/container_service.rs:435:38 [INFO] [stderr] | [INFO] [stderr] 435 | /// See the Docker API reference[https://docs.docker.com/engine/api/v1.41/#operation/ContainerLogs] for more information. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://docs.docker.com/engine/api/v1.41/#operation/ContainerLogs>` [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/container_service.rs:480:38 [INFO] [stderr] | [INFO] [stderr] 480 | /// See the Docker API reference[https://docs.docker.com/engine/api/v1.41/#operation/ContainerListProcesses] for more information. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://docs.docker.com/engine/api/v1.41/#operation/ContainerListProcesses>` [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] [INFO] [stderr] warning: this URL is not a hyperlink [INFO] [stderr] --> src/container_service.rs:541:39 [INFO] [stderr] | [INFO] [stderr] 541 | ...ocker API reference [https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerStats] for more information. [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://docs.docker.com/engine/api/v1.41/#tag/Container/operation/ContainerStats>` [INFO] [stderr] | [INFO] [stderr] = note: bare URLs are not automatically turned into clickable links [INFO] [stderr] [INFO] [stderr] warning: `docker_engine_api` (lib doc) generated 15 warnings (run `cargo fix --lib -p docker_engine_api` to apply 10 suggestions) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.06s [INFO] running `Command { std: "docker" "inspect" "3e49abd6e4b445921db35be546068612ab135cea5b4f6b7065da7877ac936f61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e49abd6e4b445921db35be546068612ab135cea5b4f6b7065da7877ac936f61", kill_on_drop: false }` [INFO] [stdout] 3e49abd6e4b445921db35be546068612ab135cea5b4f6b7065da7877ac936f61