Skip to content

Commit

Permalink
network: add support for network-specific options
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Zimmermann <[email protected]>
  • Loading branch information
M1cha committed Nov 11, 2024
1 parent 2b0e652 commit dfcbea6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/network/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ pub struct PerNetworkOptions {
/// MAC address for the container interface.
#[serde(rename = "static_mac")]
pub static_mac: Option<String>,

/// Driver-specific options for this container.
#[serde(rename = "options", default)]
pub options: HashMap<String, String>,
}

/// PortMapping is one or more ports that will be mapped into the container.
Expand Down

0 comments on commit dfcbea6

Please sign in to comment.