aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Scheel <alex.scheel@hashicorp.com>2022-06-02 13:54:04 -0400
committerAlexander Scheel <alex.scheel@hashicorp.com>2022-06-02 13:54:04 -0400
commit5023ce585c724b0c2bd49945393585d72b6e6342 (patch)
treeff30ed45fe961a6374b5d31e8cf95010364c73cc
parentd069ad108246a15b57481afd12ef7ffd5667e1d2 (diff)
downloadpodman-5023ce585c724b0c2bd49945393585d72b6e6342.tar.gz
podman-5023ce585c724b0c2bd49945393585d72b6e6342.tar.bz2
podman-5023ce585c724b0c2bd49945393585d72b6e6342.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
}