Skip to main content

rollback_image

Function rollback_image 

Source
pub async fn rollback_image(client: &DockerClient) -> Result<(), DockerError>
Expand description

Rollback to the previous image version

This re-tags the “previous” image as “latest”, effectively reverting to the version that was active before the last update.

Returns an error if no previous image exists.

§Arguments

  • client - Docker client