Valentin Rothberg
0d1aaf080e
image lookup: do not match *any* tags
...
For reasons buried in the history of Podman, looking up an untagged
image would match any tag of matching image. For instance, looking up
centos would match a local image centos:foobar. Change that behavior
to only match the latest tag.
Fix : #11964
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2021-11-23 11:15:03 +01:00
dependabot[bot]
73e95d1c3e
Bump github.com/containers/image/v5 from 5.16.1 to 5.17.0
...
Bumps [github.com/containers/image/v5](https://github.com/containers/image ) from 5.16.1 to 5.17.0.
- [Release notes](https://github.com/containers/image/releases )
- [Commits](https://github.com/containers/image/compare/v5.16.1...v5.17.0 )
---
updated-dependencies:
- dependency-name: github.com/containers/image/v5
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-11-22 17:01:27 +00:00
Daniel J Walsh
364b242b70
Set config environment variables early in Podman init
...
Fixes: https://github.com/containers/podman/issues/12296
[NO NEW TESTS NEEDED] because there is no easy way to test this.
Tests are in containers/common.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
2021-11-15 14:36:23 -05:00
Valentin Rothberg
1ef66d6d7f
podman load: support downloading files
...
Support downloading files, for instance via
`podman load -i server.com/image.tar`. The specified URL is downloaded
in the frontend and stored as a temp file that gets passed down to the
backend.
Also vendor in c/common@main to use the new `pkg/download`.
Fixes : #11970
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2021-11-10 15:43:16 +01:00
Valentin Rothberg
faf450ea18
support health checks from image configs
...
Health checks may be defined in the container config or the config of an
image. So far, Podman only looked at the container config.
The plumbing happened in libimage but add a regression test to Podman as
well to make sure the glue code will not regress.
Note that I am pinning github.com/onsi/gomega to v1.16.0 since v1.17.0
requires go 1.16 which in turn is breaking CI.
Fixes : #12226
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2021-11-09 15:32:36 +01:00
Valentin Rothberg
ff31f2264d
container create: fix --tls-verify parsing
...
Make sure that the value is only set if specified on the CLI. c/image
already defaults to true but if set in the system context, we'd skip
settings in the registries.conf.
Fixes : #11933
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2021-10-27 14:36:25 +02:00
Daniel J Walsh
087f8fc73b
Allow API to specify size and inode quota
...
Fixes: https://github.com/containers/podman/issues/11016
[NO NEW TESTS NEEDED] We have no easy way to tests this in
CI/CD systems. Requires quota to be setup on directories to work.
Fixes: https://github.com/containers/podman/issues/11016
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
2021-10-18 14:44:10 -04:00
Valentin Rothberg
fad14dafe1
faster image inspection
...
Vendor the latest HEAD in c/common to pull in changes for a faster
inspection of images. Previously, only the size computation was
optional, now the one for the parent image is as well.
In many cases, the parent image is not needed but it takes around 10ms
on my local machine. With this change, we cut off 10ms from many code
paths, most importantly, container creation.
[NO NEW TESTS NEEDED]
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2021-10-08 14:47:33 +02:00
dependabot[bot]
675d2d0c1a
Bump github.com/containers/image/v5 from 5.16.0 to 5.16.1
...
Bumps [github.com/containers/image/v5](https://github.com/containers/image ) from 5.16.0 to 5.16.1.
- [Release notes](https://github.com/containers/image/releases )
- [Commits](https://github.com/containers/image/compare/v5.16.0...v5.16.1 )
---
updated-dependencies:
- dependency-name: github.com/containers/image/v5
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-06 12:24:29 +00:00
Paul Holzinger
8156df5b72
bump c/common to latest and c/storage to 1.37.0
...
Update c/common to fix a bug where broken config files could be created
via podman machine and podman system connection add.
Signed-off-by: Paul Holzinger <pholzing@redhat.com >
2021-10-04 16:34:10 +02:00
dependabot[bot]
97bf6331f9
Bump github.com/containers/buildah from 1.23.0 to 1.23.1
...
Bumps [github.com/containers/buildah](https://github.com/containers/buildah ) from 1.23.0 to 1.23.1.
- [Release notes](https://github.com/containers/buildah/releases )
- [Changelog](https://github.com/containers/buildah/blob/v1.23.1/CHANGELOG.md )
- [Commits](https://github.com/containers/buildah/compare/v1.23.0...v1.23.1 )
---
updated-dependencies:
- dependency-name: github.com/containers/buildah
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-10-01 15:01:50 +00:00
Daniel J Walsh
1805ed360d
Vendor in latest containers/storage
...
Fix handling of additional shares with no images
Fixes: https://github.com/containers/storage/issues/1029
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
2021-09-29 15:25:54 -04:00
Valentin Rothberg
a9a54eefab
image prune: support removing external containers
...
Support removing external containers (e.g., build containers) during
image prune.
Fixes : #11472
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2021-09-28 10:24:16 +02:00
Daniel J Walsh
5a2ca77b9b
Vendor in containers/common v0.46.0
...
Fixes: https://github.com/containers/podman/issues/11745
[NO TESTS NEEDED] Since this is just a revendor and a one line
change for the revendor
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2021-09-27 11:30:09 +02:00
OpenShift Merge Robot
8f19efb519
Merge pull request #11678 from vrothberg/fix-11613
...
podman save: add `--uncompressed`
2021-09-22 09:53:46 -04:00
OpenShift Merge Robot
7910bfd7c1
Merge pull request #11659 from vrothberg/psgo
...
vendor c/psgo@v1.7.1
2021-09-22 06:38:44 -04:00
Valentin Rothberg
49c5688a30
podman save: add --uncompressed
...
Add an option to `podman save` to allow uncompressed layers when
copying OCI images. Do the neccessary plumbing for the remote client,
add tests and vendor in the latest commit from c/common to fetch
the neccessary changes in libimage.
Closes : #11613
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2021-09-22 12:38:07 +02:00
Valentin Rothberg
5875e409e2
vendor c/psgo@v1.7.1
...
psgo added support for listing supplementary groups via
two new descriptors:
* `groups` for supplementary groups inside the container
* `hgroups` for the counterpart on the host
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2021-09-22 10:35:08 +02:00
Valentin Rothberg
5098124570
vendor c/common@main
...
Finalizes the linked BZ to fix passing down custom authfiles during auto
updates. Also fixes the if-newer pull policy.
[NO TESTS NEEDED] for now validated manually. There's a TODO to add a
new system test that I did not find time for before PTO.
BZ: bugzilla.redhat.com/show_bug.cgi?id=2000943
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2021-09-20 15:07:41 +02:00
Daniel J Walsh
3e77f960f6
Set default storage from containers.conf for temporary images
...
Fixes: https://github.com/containers/podman/issues/11107
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
2021-09-15 10:43:51 -04:00
Aditya Rajan
d0c605cd3d
build: mirror --authfile to filesystem if pointing to FD instead of file
...
Following commit makes sure that podman mirrors --authfile to a temporary
file in filesystem if arg is pointing to an FD instead of actual file
as FD can be only consumed once.
Reference:
* https://github.com/containers/buildah/pull/3498
* https://github.com/containers/buildah/issues/3070
[NO TESTS NEEDED]
Signed-off-by: Aditya Rajan <arajan@redhat.com >
2021-09-15 14:58:48 +05:30
Aditya Rajan
222b62e7b0
vendor: Bump github.com/containers/buildah from 1.22.3 to 1.23.0
...
[NO TESTS NEEDED]
Signed-off-by: Aditya Rajan <arajan@redhat.com >
2021-09-15 13:30:49 +05:30
flouthoc
a55e2a00fc
rootfs: Add support for rootfs-overlay and bump to buildah v1.22.1-0.202108
...
Allows users to specify a readonly rootfs with :O, in exchange podman will create a writable overlay.
bump builah to v1.22.1-0.20210823173221-da2b428c56ce
[NO TESTS NEEDED]
Signed-off-by: flouthoc <flouthoc.git@gmail.com >
2021-09-14 13:31:39 +05:30
Paul Holzinger
b0cbcd1d09
bump c/common to v0.44.0
...
Signed-off-by: Paul Holzinger <pholzing@redhat.com >
2021-09-13 18:49:38 +02:00
dependabot[bot]
309d989712
Bump github.com/containers/psgo from 1.5.2 to 1.6.0
...
Bumps [github.com/containers/psgo](https://github.com/containers/psgo ) from 1.5.2 to 1.6.0.
- [Release notes](https://github.com/containers/psgo/releases )
- [Commits](https://github.com/containers/psgo/compare/v1.5.2...v1.6.0 )
---
updated-dependencies:
- dependency-name: github.com/containers/psgo
dependency-type: direct:production
update-type: version-update:semver-minor
...
[NO TESTS NEEDED] since it's migrating to a new version.
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2021-09-10 15:23:43 +02:00
Aditya Rajan
cba114dd36
manifest: rm should not remove referenced images.
...
Following PR makes sure that `podman manifest rm <list>` only removes
the named manifest list and not referenced images.
Bumping and squashing c/common to v0.43.3-0.20210902095222-a7acc160fb25
in same commit in order to make sure build commit test passes.
Signed-off-by: Aditya Rajan <arajan@redhat.com >
2021-09-02 17:30:02 +05:30
dependabot[bot]
f5ce02b227
Bump github.com/containers/image/v5 from 5.15.2 to 5.16.0
...
Bumps [github.com/containers/image/v5](https://github.com/containers/image ) from 5.15.2 to 5.16.0.
- [Release notes](https://github.com/containers/image/releases )
- [Commits](https://github.com/containers/image/compare/v5.15.2...v5.16.0 )
---
updated-dependencies:
- dependency-name: github.com/containers/image/v5
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-26 13:21:26 +00:00
Nalin Dahyabhai
fc6a020330
bump github.com/containers/common
...
Update github.com/containers/common from 0.43.0 to 0.43.2.
Signed-off-by: Nalin Dahyabhai <nalin@redhat.com >
2021-08-23 17:59:58 -04:00
Daniel J Walsh
6b06e9b77c
Switch eventlogger to journald by default
...
[NO TESTS NEEDED] Since we are just testing the default.
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
2021-08-23 17:59:42 -04:00
dependabot[bot]
fe4dc452ec
Bump github.com/containers/buildah from 1.22.0 to 1.22.3
...
Bumps [github.com/containers/buildah](https://github.com/containers/buildah ) from 1.22.0 to 1.22.3.
- [Release notes](https://github.com/containers/buildah/releases )
- [Changelog](https://github.com/containers/buildah/blob/v1.22.3/CHANGELOG.md )
- [Commits](https://github.com/containers/buildah/compare/v1.22.0...v1.22.3 )
---
updated-dependencies:
- dependency-name: github.com/containers/buildah
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-23 12:24:00 +00:00
dependabot[bot]
82bb999e36
Bump github.com/containers/image/v5 from 5.15.1 to 5.15.2
...
Bumps [github.com/containers/image/v5](https://github.com/containers/image ) from 5.15.1 to 5.15.2.
- [Release notes](https://github.com/containers/image/releases )
- [Commits](https://github.com/containers/image/compare/v5.15.1...v5.15.2 )
---
updated-dependencies:
- dependency-name: github.com/containers/image/v5
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-19 12:28:10 +00:00
dependabot[bot]
c1b7787a28
Bump github.com/containers/image/v5 from 5.15.0 to 5.15.1
...
Bumps [github.com/containers/image/v5](https://github.com/containers/image ) from 5.15.0 to 5.15.1.
- [Release notes](https://github.com/containers/image/releases )
- [Commits](https://github.com/containers/image/compare/v5.15.0...v5.15.1 )
---
updated-dependencies:
- dependency-name: github.com/containers/image/v5
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-17 19:29:15 +00:00
dependabot[bot]
e9f4d81790
Bump github.com/containers/storage from 1.34.0 to 1.34.1
...
Bumps [github.com/containers/storage](https://github.com/containers/storage ) from 1.34.0 to 1.34.1.
- [Release notes](https://github.com/containers/storage/releases )
- [Changelog](https://github.com/containers/storage/blob/main/docs/containers-storage-changes.md )
- [Commits](https://github.com/containers/storage/compare/v1.34.0...v1.34.1 )
---
updated-dependencies:
- dependency-name: github.com/containers/storage
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-17 12:21:23 +00:00
dependabot[bot]
f7de8bc809
Bump github.com/containers/storage from 1.33.1 to 1.34.0
...
Bumps [github.com/containers/storage](https://github.com/containers/storage ) from 1.33.1 to 1.34.0.
- [Release notes](https://github.com/containers/storage/releases )
- [Changelog](https://github.com/containers/storage/blob/main/docs/containers-storage-changes.md )
- [Commits](https://github.com/containers/storage/compare/v1.33.1...v1.34.0 )
---
updated-dependencies:
- dependency-name: github.com/containers/storage
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-10 13:00:34 +00:00
TomSweeneyRedHat
ddc360fe17
Bump Buildah to v1.22.0 [NO TESTS NEEDED]
...
Bump Buildah to v1.22.0 in preparation for RHEL 8.5 and
RHEL 9.0beta. Also bump c/common to v0.42.1
[NO TESTS NEEDED]
Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com >
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
2021-08-04 12:52:34 -04:00
dependabot[bot]
c1156d48b5
Bump github.com/containers/storage from 1.33.0 to 1.33.1
...
Bumps [github.com/containers/storage](https://github.com/containers/storage ) from 1.33.0 to 1.33.1.
- [Release notes](https://github.com/containers/storage/releases )
- [Changelog](https://github.com/containers/storage/blob/main/docs/containers-storage-changes.md )
- [Commits](https://github.com/containers/storage/compare/v1.33.0...v1.33.1 )
---
updated-dependencies:
- dependency-name: github.com/containers/storage
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-02 12:20:13 +00:00
dependabot[bot]
58672847ee
Bump github.com/containers/image/v5 from 5.14.0 to 5.15.0
...
Bumps [github.com/containers/image/v5](https://github.com/containers/image ) from 5.14.0 to 5.15.0.
- [Release notes](https://github.com/containers/image/releases )
- [Commits](https://github.com/containers/image/compare/v5.14.0...v5.15.0 )
---
updated-dependencies:
- dependency-name: github.com/containers/image/v5
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-08-01 11:33:58 +00:00
Sascha Grunert
732ece6ae2
Add --accept-repositories integration tests
...
This adds the integration tests for the repository or namespaced
registry feature introduced in c/common.
Signed-off-by: Sascha Grunert <sgrunert@redhat.com >
2021-07-30 14:53:55 +02:00
dependabot[bot]
b090738328
Bump github.com/containers/storage from 1.32.6 to 1.33.0
...
Bumps [github.com/containers/storage](https://github.com/containers/storage ) from 1.32.6 to 1.33.0.
- [Release notes](https://github.com/containers/storage/releases )
- [Changelog](https://github.com/containers/storage/blob/main/docs/containers-storage-changes.md )
- [Commits](https://github.com/containers/storage/compare/v1.32.6...v1.33.0 )
---
updated-dependencies:
- dependency-name: github.com/containers/storage
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-27 13:46:11 +00:00
OpenShift Merge Robot
27a487929e
Merge pull request #11028 from containers/dependabot/go_modules/github.com/containers/image/v5-5.14.0
...
Bump github.com/containers/image/v5 from 5.13.2 to 5.14.0
2021-07-27 15:26:24 +02:00
Valentin Rothberg
1b6423e9f1
refine dangling checks
...
By proxy by vendoring containers/common. Previously, a "dangling" image
was an untagged image; just a described in the Docker docs. The
definition of dangling has now been refined to an untagged image without
children to be compatible with Docker.
Further update a redundant image-prune test.
Fixes : #10998
Fixes : #10832
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2021-07-26 09:28:17 +02:00
dependabot[bot]
23a938fa26
Bump github.com/containers/image/v5 from 5.13.2 to 5.14.0
...
Bumps [github.com/containers/image/v5](https://github.com/containers/image ) from 5.13.2 to 5.14.0.
- [Release notes](https://github.com/containers/image/releases )
- [Commits](https://github.com/containers/image/compare/v5.13.2...v5.14.0 )
---
updated-dependencies:
- dependency-name: github.com/containers/image/v5
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-25 04:54:29 -04:00
Valentin Rothberg
2e02942d46
vendor containers/common@main
...
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2021-07-16 17:32:37 +02:00
Valentin Rothberg
e1ac0c3033
vendor containers/common@main
...
The `IgnorePlatform` options has been removed from the
`LookupImageOptions` in libimage to properly support multi-arch images.
Skip one buildah-bud test which requires updated CI images. This is
currently being done in github.com/containers/podman/pull/10829 but
we need to unblock merging common and buildah into podman.
[NO TESTS NEEDED]
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2021-07-16 14:19:56 +02:00
dependabot[bot]
084dbeb569
Bump github.com/containers/storage from 1.32.5 to 1.32.6
...
Bumps [github.com/containers/storage](https://github.com/containers/storage ) from 1.32.5 to 1.32.6.
- [Release notes](https://github.com/containers/storage/releases )
- [Changelog](https://github.com/containers/storage/blob/main/docs/containers-storage-changes.md )
- [Commits](https://github.com/containers/storage/compare/v1.32.5...v1.32.6 )
---
updated-dependencies:
- dependency-name: github.com/containers/storage
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-07-12 12:20:58 +00:00
Valentin Rothberg
7eb9ed9758
vendor containers/common@main
...
Pull in fixes for local image lookups.
Fixes : #10835
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2021-07-02 11:38:28 +02:00
Valentin Rothberg
8b52204baa
vendor containers/common@7482cf851d
...
Make sure that image events are written *after* execution.
Fixes : #10812
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2021-06-30 13:08:42 +02:00
Daniel J Walsh
05f39af5bd
Bump github.com/containers/storage from 1.32.3 to 1.32.5
...
Bumps [github.com/containers/storage](https://github.com/containers/storage ) from 1.32.3 to 1.32.5.
- [Release notes](https://github.com/containers/storage/releases )
- [Changelog](https://github.com/containers/storage/blob/main/docs/containers-storage-changes.md )
- [Commits](https://github.com/containers/storage/compare/v1.32.3...v1.32.5 )
---
updated-dependencies:
- dependency-name: github.com/containers/storage
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com >
2021-06-29 15:58:32 -04:00
dependabot[bot]
fb5f70296b
Bump github.com/containers/ocicrypt from 1.1.1 to 1.1.2
...
Bumps [github.com/containers/ocicrypt](https://github.com/containers/ocicrypt ) from 1.1.1 to 1.1.2.
- [Release notes](https://github.com/containers/ocicrypt/releases )
- [Commits](https://github.com/containers/ocicrypt/compare/v1.1.1...v1.1.2 )
---
updated-dependencies:
- dependency-name: github.com/containers/ocicrypt
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-06-29 12:30:56 +00:00
Valentin Rothberg
f95b0995e5
remove pkg/registries
...
Pull the trigger on the `pkg/registries` package which acted as a proxy
for `c/image/pkg/sysregistriesv2`. Callers should be using the packages
from c/image directly, if needed at all.
Also make use of libimage's SystemContext() method which returns a copy
of a system context, further reducing the risk of unintentionally
altering global data.
[NO TESTS NEEDED]
Signed-off-by: Valentin Rothberg <rothberg@redhat.com >
2021-06-25 09:56:21 +02:00