setup_docker

Function setup_docker 

Source
pub fn setup_docker(rollback: &RollbackManager) -> Result<(), Box<dyn Error>>
Expand description

Sets up Docker on the system.

This function installs Docker, configures it, and ensures it’s running and enabled on boot. It creates a snapshot before installation for potential rollback.

§Arguments

  • rollback - A reference to the RollbackManager for creating snapshots

§Returns

Returns Ok(()) if Docker is set up successfully, or an error if setup fails.