diff --git a/libpod/runtime.go b/libpod/runtime.go index cf7ef3f1..47dd9d19 100644 --- a/libpod/runtime.go +++ b/libpod/runtime.go @@ -3,6 +3,7 @@ package libpod import ( "sync" + is "github.com/containers/image/storage" "github.com/containers/image/types" "github.com/containers/storage" "github.com/kubernetes-incubator/cri-o/server/apparmor" @@ -80,6 +81,7 @@ func NewRuntime(options ...RuntimeOption) (*Runtime, error) { return nil, err } runtime.store = store + is.Transport.SetStore(store) // Set up containers/image runtime.imageContext = &types.SystemContext{ diff --git a/test/kpod_push.bats b/test/kpod_push.bats index d1507f12..caa6916b 100644 --- a/test/kpod_push.bats +++ b/test/kpod_push.bats @@ -12,7 +12,7 @@ function teardown() { run ${KPOD_BINARY} $KPOD_OPTIONS pull "$IMAGE" echo "$output" [ "$status" -eq 0 ] - run ${KPOD_BINARY} $KPOD_OPTIONS push "$IMAGE" containers-storage:[${TESTDIR}/crio]busybox:test + run ${KPOD_BINARY} $KPOD_OPTIONS push "$IMAGE" containers-storage:busybox:test echo "$output" [ "$status" -eq 0 ] run ${KPOD_BINARY} $KPOD_OPTIONS rmi "$IMAGE" busybox:test