pub enum PullPolicy {
Always,
Build,
Daily,
Missing,
Never,
Refresh,
Weekly,
Other(String),
}Expand description
Defines the decisions Compose makes when it starts to pull images.
See more: https://docs.docker.com/reference/compose-file/services/#pull_policy
Variants§
Always
Compose always pulls the image from the registry.
Build
Compose builds the image. Compose rebuilds the image if it’s already present.
Daily
Compose checks the registry for image updates if the last pull took place more than 24 hours ago.
Missing
Compose pulls the image only if it’s not available in the platform cache. This is the default option if you are not also using the Compose Build Specification. if_not_present is considered an alias for this value for backward compatibility. The latest tag is always pulled even when the missing pull policy is used.
Never
Compose doesn’t pull the image from a registry and relies on the platform cached image. If there is no cached image, a failure is reported.
Refresh
Weekly
Compose checks the registry for image updates if the last pull took place more than 7 days ago.
Other(String)
Trait Implementations§
Source§impl Clone for PullPolicy
impl Clone for PullPolicy
Source§fn clone(&self) -> PullPolicy
fn clone(&self) -> PullPolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PullPolicy
impl Debug for PullPolicy
Source§impl<'de> Deserialize<'de> for PullPolicy
impl<'de> Deserialize<'de> for PullPolicy
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>,
Source§impl PartialEq for PullPolicy
impl PartialEq for PullPolicy
Source§impl Serialize for PullPolicy
impl Serialize for PullPolicy
impl Eq for PullPolicy
impl StructuralPartialEq for PullPolicy
Auto Trait Implementations§
impl Freeze for PullPolicy
impl RefUnwindSafe for PullPolicy
impl Send for PullPolicy
impl Sync for PullPolicy
impl Unpin for PullPolicy
impl UnsafeUnpin for PullPolicy
impl UnwindSafe for PullPolicy
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.