core-dockpack 0.1.2

A library for unpacking files from Docker images
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! This module contains the function to execute the push command to push a docker image to the docker registry.
use crate::utils::docker_commands;


/// Executes the push command to push a docker image to the docker registry.
/// 
/// # Arguments
/// * `image` - A string slice that holds the name of the docker image to push.
/// 
/// # Returns
/// * `Result<(), String>` - A result that indicates if the docker image was pushed successfully or an error message
pub fn execute_docker_build(image: &str) -> Result<(), String> {
    docker_commands::build_docker_image(image)?;
    Ok(())
}