summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Scheel <alex.scheel@hashicorp.com>2022-06-02 13:54:04 -0400
committerMatthew Heon <mheon@redhat.com>2022-06-14 16:12:10 -0400
commit919c8beae1ab17355e81b550f688b6efb58de33a (patch)
tree6e51cde8826c53af94ecedb3cddacdf8330dd41f
parentbbd96e3eb504ba76e1fe87f168b7995e7361805a (diff)
downloadpodman-919c8beae1ab17355e81b550f688b6efb58de33a.tar.gz
podman-919c8beae1ab17355e81b550f688b6efb58de33a.tar.bz2
podman-919c8beae1ab17355e81b550f688b6efb58de33a.zip
Align docker load and podman load output
The comma-separated podman load output isn't conducive for using the subsequent images. For tarballs with multiple images, the comma separator must be manually identified and a suitable range identified. Docker CLI on the other hand, has one image identifier per line: Loaded image: repo1/name1:latest Loaded image: repo1/name1:tag1 Loaded image: repo2/name2:tag1 (as of Docker version 20.10.16, build aa7e414). Switch `podman load` to this format for consistency and usability. [NO NEW TESTS NEEDED] Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
-rw-r--r--cmd/podman/images/load.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/images/load.go b/cmd/podman/images/load.go
index dbb7c32fa..c18c32387 100644
--- a/cmd/podman/images/load.go
+++ b/cmd/podman/images/load.go
@@ -110,6 +110,6 @@ func load(cmd *cobra.Command, args []string) error {
if err != nil {
return err
}
- fmt.Println("Loaded image(s): " + strings.Join(response.Names, ","))
+ fmt.Println("Loaded image: " + strings.Join(response.Names, "\nLoaded image: "))
return nil
}