Enum podman_api::opts::NetworkMode
source · pub enum NetworkMode {
Bridge,
Host,
None,
Container,
Custom(String),
}
Expand description
The networking mode for the run commands during image build.
Variants§
Bridge
Limited to containers within a single host, port mapping required for external access.
Host
No isolation between host and containers on this network.
None
Disable all networking for this container.
Container
Share networking with given container.
Custom(String)
Custom network’s name.
Trait Implementations§
source§impl AsRef<str> for NetworkMode
impl AsRef<str> for NetworkMode
source§impl Clone for NetworkMode
impl Clone for NetworkMode
source§fn clone(&self) -> NetworkMode
fn clone(&self) -> NetworkMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more