pub enum DockerEndpoint {
Published,
Bridge,
}Expand description
How the remote-Docker backend reports a launched workload’s reachable endpoint.
The default Published publishes the container port on the host loopback
(127.0.0.1:<ephemeral>) and routes to that, so it works whenever boatramp serve runs on the host — including Docker Desktop / macOS, where the daemon runs
in a VM and the container bridge IP is not host-routable. Binding to loopback
(not 0.0.0.0) keeps the workload port off the network, matching the hardened
posture.
Bridge routes to the container’s bridge IP directly (the pre-0.2.1 behavior). It
is only reachable when serve shares the daemon’s network — e.g. serve itself
runs in a container on the same Docker bridge (docker-out-of-docker) — but avoids
publishing a host port.
Variants§
Published
Publish the container port on 127.0.0.1:<ephemeral> and route there (default).
Bridge
Route to the container’s bridge IP directly (serve must share the network).
Trait Implementations§
Source§impl Clone for DockerEndpoint
impl Clone for DockerEndpoint
Source§fn clone(&self) -> DockerEndpoint
fn clone(&self) -> DockerEndpoint
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DockerEndpoint
Source§impl Debug for DockerEndpoint
impl Debug for DockerEndpoint
Source§impl Default for DockerEndpoint
impl Default for DockerEndpoint
Source§fn default() -> DockerEndpoint
fn default() -> DockerEndpoint
Source§impl<'de> Deserialize<'de> for DockerEndpoint
impl<'de> Deserialize<'de> for DockerEndpoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for DockerEndpoint
Source§impl PartialEq for DockerEndpoint
impl PartialEq for DockerEndpoint
Source§impl Serialize for DockerEndpoint
impl Serialize for DockerEndpoint
impl StructuralPartialEq for DockerEndpoint
Auto Trait Implementations§
impl Freeze for DockerEndpoint
impl RefUnwindSafe for DockerEndpoint
impl Send for DockerEndpoint
impl Sync for DockerEndpoint
impl Unpin for DockerEndpoint
impl UnsafeUnpin for DockerEndpoint
impl UnwindSafe for DockerEndpoint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.