mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-30 14:25:43 +00:00
image_rpc: Fix the image store path
the "latest" is the tag info, real data will store in image_oci directory Fixes: #3041 Signed-off-by: Arron Wang <arron.wang@intel.com>
This commit is contained in:
parent
855878b803
commit
6237b9991c
@ -22,7 +22,7 @@ use crate::AGENT_CONFIG;
|
||||
|
||||
const SKOPEO_PATH: &str = "/usr/bin/skopeo";
|
||||
const UMOCI_PATH: &str = "/usr/local/bin/umoci";
|
||||
const IMAGE_OCI: &str = "image_oci:latest";
|
||||
const IMAGE_OCI: &str = "image_oci";
|
||||
const AA_PATH: &str = "/usr/local/bin/attestation-agent";
|
||||
const AA_PORT: &str = "127.0.0.1:50000";
|
||||
const OCICRYPT_CONFIG_PATH: &str = "/tmp/ocicrypt_config.json";
|
||||
@ -58,7 +58,7 @@ impl ImageService {
|
||||
|
||||
let tmp_cid_path = Path::new("/tmp/").join(cid);
|
||||
let oci_path = tmp_cid_path.join(IMAGE_OCI);
|
||||
let target_path_oci = format!("oci://{}", oci_path.to_string_lossy());
|
||||
let target_path_oci = format!("oci://{}:latest", oci_path.to_string_lossy());
|
||||
|
||||
fs::create_dir_all(&oci_path)?;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user