From 9a23e285d3ef7d356cb08cd431bcc6ffc7b579ab Mon Sep 17 00:00:00 2001 From: baude Date: Tue, 15 Jan 2019 10:27:13 -0600 Subject: add support for podman-remote history this adds support to get the history for an image and its layers using podman-remote. Signed-off-by: baude --- cmd/podman/history.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'cmd/podman') diff --git a/cmd/podman/history.go b/cmd/podman/history.go index 7c8c619c8..802047071 100644 --- a/cmd/podman/history.go +++ b/cmd/podman/history.go @@ -1,15 +1,15 @@ package main import ( + "github.com/containers/libpod/libpod/adapter" "reflect" "strconv" "strings" "time" "github.com/containers/libpod/cmd/podman/formats" - "github.com/containers/libpod/cmd/podman/libpodruntime" "github.com/containers/libpod/libpod/image" - units "github.com/docker/go-units" + "github.com/docker/go-units" "github.com/pkg/errors" "github.com/urfave/cli" ) @@ -72,11 +72,11 @@ func historyCmd(c *cli.Context) error { return err } - runtime, err := libpodruntime.GetRuntime(c) + runtime, err := adapter.GetRuntime(c) if err != nil { return errors.Wrapf(err, "could not get runtime") } - defer runtime.Shutdown(false) + defer runtime.Runtime.Shutdown(false) format := genHistoryFormat(c.String("format"), c.Bool("quiet")) @@ -88,7 +88,7 @@ func historyCmd(c *cli.Context) error { return errors.Errorf("podman history takes at most 1 argument") } - image, err := runtime.ImageRuntime().NewFromLocal(args[0]) + image, err := runtime.NewImageFromLocal(args[0]) if err != nil { return err } -- cgit v1.2.3-54-g00ecf