Skip to content

Commit

Permalink
fix: Remove --load for docker build since we no longer pull the image…
Browse files Browse the repository at this point in the history
… for inspection
  • Loading branch information
gmpinder committed Oct 6, 2024
1 parent 3d393ce commit a0b2560
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions process/drivers/docker_driver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ use tempdir::TempDir;
use crate::{
drivers::{
opts::{RunOptsEnv, RunOptsVolume},
types::{InspectDriverType, Platform},
Driver,
types::Platform,
},
logging::CommandLogging,
signal_handler::{add_cid, remove_cid, ContainerId, ContainerRuntime},
Expand Down Expand Up @@ -310,13 +309,6 @@ impl BuildDriver for DockerDriver {
"type=image,name={first_image},push=true,compression={},oci-mediatypes=true",
opts.compression
),
// Load the image to the local image registry
// if the inspect driver is docker so that
// we don't have to pull the image again to inspect.
if matches!(
Driver::get_inspect_driver(),
InspectDriverType::Docker,
) => "--load",
);
} else {
cmd!(command, "--load");
Expand Down

0 comments on commit a0b2560

Please sign in to comment.