Comments (6)
Thanks for the report! Could you provide an example of which fields do not match the API spec?
from docker-api-rs.
well, there is lot of fields has changed. new ContainerInfo
may be like:
#[derive(Clone, Debug, Serialize, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct ContainerInfo {
pub id: String,
#[cfg(feature = "chrono")]
pub created: DateTime<Utc>,
#[cfg(not(feature = "chrono"))]
pub created: u64,
pub path: String,
pub args: Vec<String>,
pub state: ContainerState,
pub image: String,
pub resolv_conf_path: String,
pub hostname_path: String,
pub hosts_path: String,
pub log_path: String,
pub name: String,
pub restart_count: i64,
pub driver: String,
pub platform: String,
pub mount_label: String,
pub process_label: String,
pub app_armor_profile: String,
#[serde(rename = "ExecIDs")]
pub exec_ids: Option<Vec<String>>,
pub host_config: HostConfig,
pub graph_driver: DriverData,
pub size_rw: Option<i64>,
pub size_root_fs: Option<i64>,
pub mounts: Vec<MountPoint>,
pub config: ContainerConfig,
pub network_settings: NetworkSettings,
}
and some associated struct also changed
pub struct HealthcheckResult {
#[cfg(feature = "chrono")]
pub start: DateTime<Utc>,
#[cfg(not(feature = "chrono"))]
pub start: String, // ...
}
pub struct HostConfig {
// ...
pub blkio_weight: u16, // new field
pub blkio_weight_device: Option<Vec<ThrottleDeviceObject>>,
// ...
pub device_cgroup_rules: Option<Vec<String>>,
// ...
pub kernel_memory: Option<i16>, // new field
// ...
}
// new struct
#[dervice(Clone, Debug, Serialize, Deserialize)]
#[serde(rename_all = "PascalCase")]
pub struct ThrottleDeviceObject {
pub path: String,
pub weight: u64,
}
pub struct NetworkSettings {
// ...
#[serde(rename = "GlobalIPv6PrefixLen")]
pub global_ipv6_prefix_len: u32,
// ...
}
from docker-api-rs.
Thanks for the report!
Oh, I didn't notice that Container::inspect
was using the wrong struct. ContainerInfo
is supposed to be used with Containers::list
and ContainerDetails
should be used with Container::inspect
.
Should be resolved when #8 gets merged.
from docker-api-rs.
Thanks for the working!
Could you publish a new crate so I can get update?
from docker-api-rs.
Sure thing.
from docker-api-rs.
Should be up on crates.io .
from docker-api-rs.
Related Issues (20)
- Add integration tests for swarm api
- Add integration tests for tasks api
- Add integration tests for services api
- Add integration tests for volumes api
- Image build takes time when build context is big HOT 7
- Linting issues during build
- Implementation can be derived error HOT 1
- TTY Option supresses stdout & stderr HOT 1
- Add tests for Container::attach
- Container TTY Resize HOT 6
- Upgrade to v1.42 API version HOT 3
- Add `βnet` option to container creation. HOT 2
- Stdin for Execs HOT 2
- Support for npipe protocol for connecting on Windows HOT 1
- The lifetime of `&self` in `Container::exec` shouldn't be tied to `'docker` HOT 4
- How to write to stdin of exec? HOT 4
- lifetime problem for log stream
- PortStatus not present in TaskStatusInlineItem
- is there an equivalent of `--file` as used through the Docker cli?
- A crate release containing API version 1.43 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-api-rs.