Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/container.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1292,7 +1292,7 @@ pub struct HostConfig {
pub device_cgroup_rules: Option<String>,
pub device_requests: Option<Vec<DeviceRequest>>,
#[serde(rename = "KernelMemoryTCP")]
pub kernel_memory_tcp: i64,
pub kernel_memory_tcp: Option<i64>,
pub memory_reservation: Option<i64>,
pub memory_swap: Option<i64>,
pub memory_swappiness: Option<i64>,
Expand Down
5 changes: 3 additions & 2 deletions src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,8 @@ pub struct ImageInfo {
pub labels: Option<HashMap<String, String>>,
pub repo_tags: Option<Vec<String>>,
pub repo_digests: Option<Vec<String>>,
pub virtual_size: u64,
pub size: u64,
pub virtual_size: Option<u64>,
}

#[derive(Clone, Debug, Serialize, Deserialize)]
Expand All @@ -811,7 +812,7 @@ pub struct ImageDetails {
pub repo_tags: Option<Vec<String>>,
pub repo_digests: Option<Vec<String>>,
pub size: u64,
pub virtual_size: u64,
pub virtual_size: Option<u64>,
}

#[derive(Clone, Debug, Serialize, Deserialize)]
Expand Down