images -> image ls
Use the same format for all `docker image` commands
This commit is contained in:
committed by
Roey Darwish Dror
parent
b1e04eb5cb
commit
99645b132a
@@ -19,11 +19,11 @@ const NONEXISTENT_REPO: &str = "repository does not exist";
|
|||||||
/// "REGISTRY/[PATH/]CONTAINER_NAME:TAG"
|
/// "REGISTRY/[PATH/]CONTAINER_NAME:TAG"
|
||||||
fn list_containers(crt: &Path) -> Result<Vec<String>> {
|
fn list_containers(crt: &Path) -> Result<Vec<String>> {
|
||||||
debug!(
|
debug!(
|
||||||
"Querying '{} images --format \"{{{{.Repository}}}}:{{{{.Tag}}}}\"' for containers",
|
"Querying '{} image ls --format \"{{{{.Repository}}}}:{{{{.Tag}}}}\"' for containers",
|
||||||
crt.display()
|
crt.display()
|
||||||
);
|
);
|
||||||
let output = Command::new(crt)
|
let output = Command::new(crt)
|
||||||
.args(&["images", "--format", "{{.Repository}}:{{.Tag}}"])
|
.args(&["image", "ls", "--format", "{{.Repository}}:{{.Tag}}"])
|
||||||
.output()?;
|
.output()?;
|
||||||
let output_str = String::from_utf8(output.stdout)?;
|
let output_str = String::from_utf8(output.stdout)?;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user