mirror of
https://github.com/containers/podman.git
synced 2025-09-10 02:02:22 +08:00

Much to my regret, there is a number of images in the wild with invalid platforms breaking the platform checks in libimage that want to make sure that a local image is matching the expected platform. Imagine a `podman run --arch=arm64 fedora` with a local amd64 fedora image. We really shouldn't use the local one in this case and pull down the arm64 one. The strict platform checks in libimage in combination with invalid platforms in images surfaced in Podman being able to pull an image but failing to look it up in subsequent presence checks. A `podman run` would hence pull such an image but fail to create the container. Support images with invalid platforms by vendoring the latest HEAD from containers/common. Also remove the partially implemented pull-policy logic from Podman and let libimage handle that entirely. However, whenever --arch, --os or --platform are specified, the pull policy will be forced to "newer". This way, we pessimistically assume that the local image has an invalid platform and we reach out to the registry. If there's a newer image (i.e., one with a different digest), we'll pull it down. Please note that most of the logic has either already been implemented in libimage or been moved down which allows for removing some clutter from Podman. [NO TESTS NEEDED] since c/common has new tests. Podman can rely on the existing tests. Fixes: #10648 Fixes: #10682 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
72 lines
3.0 KiB
Modula-2
72 lines
3.0 KiB
Modula-2
module github.com/containers/podman/v3
|
|
|
|
go 1.13
|
|
|
|
require (
|
|
github.com/BurntSushi/toml v0.3.1
|
|
github.com/blang/semver v3.5.1+incompatible
|
|
github.com/buger/goterm v0.0.0-20181115115552-c206103e1f37
|
|
github.com/checkpoint-restore/checkpointctl v0.0.0-20210301084134-a2024f5584e7
|
|
github.com/checkpoint-restore/go-criu v0.0.0-20190109184317-bdb7599cd87b
|
|
github.com/container-orchestrated-devices/container-device-interface v0.0.0-20210325223243-f99e8b6c10b9
|
|
github.com/containernetworking/cni v0.8.1
|
|
github.com/containernetworking/plugins v0.9.1
|
|
github.com/containers/buildah v1.21.1
|
|
github.com/containers/common v0.40.2-0.20210623133759-d13a31743aec
|
|
github.com/containers/conmon v2.0.20+incompatible
|
|
github.com/containers/image/v5 v5.13.2
|
|
github.com/containers/ocicrypt v1.1.1
|
|
github.com/containers/psgo v1.5.2
|
|
github.com/containers/storage v1.32.3
|
|
github.com/coreos/go-systemd/v22 v22.3.2
|
|
github.com/coreos/stream-metadata-go v0.0.0-20210225230131-70edb9eb47b3
|
|
github.com/cri-o/ocicni v0.2.1-0.20210621164014-d0acc7862283
|
|
github.com/cyphar/filepath-securejoin v0.2.2
|
|
github.com/davecgh/go-spew v1.1.1
|
|
github.com/digitalocean/go-qemu v0.0.0-20210209191958-152a1535e49f
|
|
github.com/docker/distribution v2.7.1+incompatible
|
|
github.com/docker/docker v20.10.7+incompatible
|
|
github.com/docker/go-connections v0.4.0
|
|
github.com/docker/go-plugins-helpers v0.0.0-20200102110956-c9a8a2d92ccc
|
|
github.com/docker/go-units v0.4.0
|
|
github.com/fsnotify/fsnotify v1.4.9
|
|
github.com/ghodss/yaml v1.0.0
|
|
github.com/godbus/dbus/v5 v5.0.4
|
|
github.com/google/shlex v0.0.0-20181106134648-c34317bd91bf
|
|
github.com/google/uuid v1.2.0
|
|
github.com/gorilla/mux v1.8.0
|
|
github.com/gorilla/schema v1.2.0
|
|
github.com/hashicorp/go-multierror v1.1.1
|
|
github.com/hpcloud/tail v1.0.0
|
|
github.com/json-iterator/go v1.1.11
|
|
github.com/mattn/go-colorable v0.1.8 // indirect
|
|
github.com/moby/term v0.0.0-20201216013528-df9cb8a40635
|
|
github.com/mrunalp/fileutils v0.5.0
|
|
github.com/onsi/ginkgo v1.16.4
|
|
github.com/onsi/gomega v1.13.0
|
|
github.com/opencontainers/go-digest v1.0.0
|
|
github.com/opencontainers/image-spec v1.0.2-0.20190823105129-775207bd45b6
|
|
github.com/opencontainers/runc v1.0.0-rc95
|
|
github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417
|
|
github.com/opencontainers/runtime-tools v0.9.0
|
|
github.com/opencontainers/selinux v1.8.2
|
|
github.com/pkg/errors v0.9.1
|
|
github.com/pmezard/go-difflib v1.0.0
|
|
github.com/rootless-containers/rootlesskit v0.14.2
|
|
github.com/sirupsen/logrus v1.8.1
|
|
github.com/spf13/cobra v1.1.3
|
|
github.com/spf13/pflag v1.0.5
|
|
github.com/stretchr/testify v1.7.0
|
|
github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635
|
|
github.com/uber/jaeger-client-go v2.29.1+incompatible
|
|
github.com/vbauerster/mpb/v6 v6.0.4
|
|
github.com/vishvananda/netlink v1.1.1-0.20201029203352-d40f9887b852
|
|
go.etcd.io/bbolt v1.3.6
|
|
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2
|
|
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a
|
|
golang.org/x/sys v0.0.0-20210603125802-9665404d3644
|
|
gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776
|
|
k8s.io/api v0.21.2
|
|
k8s.io/apimachinery v0.21.2
|
|
)
|