Commit Graph

940 Commits

Author SHA1 Message Date
Paul Holzinger 27be5dc1df Export no such secret error
There is code in podman which uses `errors.Cause(err).Error() != "no such secret"`,
this is just bad code. Common should expose this error so podman
can check with `errors.Is()`.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2021-09-21 11:12:52 +02:00
OpenShift Merge Robot c42a32358c Merge pull request #778 from giuseppe/copier-accept-compression
libimage: accept CompressionFormat/CompressionLevel
2021-09-21 03:35:37 -04:00
OpenShift Merge Robot 272b38d4e7 Merge pull request #773 from rhatdan/ipv6
Add description of slirp options
2021-09-20 13:42:42 -04:00
OpenShift Merge Robot cadb781e46 Merge pull request #774 from rhatdan/userns
UserNS should default to '' rather then host
2021-09-20 12:19:43 -04:00
Giuseppe Scrivano 45ac9e1f99 libimage: accept CompressionFormat/CompressionLevel
allow to specify the compression format and compression level.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2021-09-20 11:34:37 +02:00
Valentin Rothberg 6dcfb65360 (*libimage.Image).HasDifferentDigest: add authentication
Allow for passing down credentials when comparing a local image with a
remote one.  The linked BZ relates to a regression in `podman auto-update`
but while reading the code I noticed it's also impacting pull policies.

BZ: bugzilla.redhat.com/show_bug.cgi?id=2000943
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-09-20 10:44:12 +02:00
Daniel J Walsh 8795468580 UserNS should default to '' rather then host
If you use this field in rootless mode, it will blow up,
since rootless mode can not use the host user namespace.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-09-18 07:00:40 -04:00
Daniel J Walsh c9d79c2438 Add description of slirp options
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-09-17 09:33:25 -04:00
Daniel J Walsh 34010ec073 Merge branch 'main' of github.com:containers/common into ipv6 2021-09-17 07:15:03 -04:00
Daniel J Walsh b45ac6d515 Make podman system service timeout configurable in containers.conf
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-09-15 06:15:42 -04:00
dependabot[bot] c8bbffc56c build(deps): bump github.com/mitchellh/mapstructure from 1.4.1 to 1.4.2
Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/mitchellh/mapstructure/releases)
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.4.1...v1.4.2)

---
updated-dependencies:
- dependency-name: github.com/mitchellh/mapstructure
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-15 04:29:09 +00:00
OpenShift Merge Robot 14af6f73f6 Merge pull request #770 from cevich/update_images
Cirrus: Freshen VM images
2021-09-14 13:38:11 -04:00
Chris Evich df7c401f4f Cirrus: Freshen VM images
Signed-off-by: Chris Evich <cevich@redhat.com>
2021-09-14 11:41:16 -04:00
Frederic Crozat abfd6e3fdd ensure same path is used in all location for krun 2021-09-14 16:59:26 +02:00
Frederic Crozat c2965e479c Add support for the krun (runc running in KVM) OCI Runtime
Signed-off-by: Frederic Crozat <fcrozat@suse.com>
2021-09-14 15:57:26 +02:00
OpenShift Merge Robot e6935a30bb Merge pull request #760 from rhatdan/config
Add support for image_copy_tmp_dir
2021-09-14 09:22:54 -04:00
Daniel J Walsh 45ef4536a9 Move to v0.44.1-dev
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-09-13 09:33:23 -04:00
Daniel J Walsh f453d7f541 Bump to v0.44.0
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-09-13 09:33:23 -04:00
dependabot[bot] a70e98c23a build(deps): bump github.com/containers/storage from 1.35.0 to 1.36.0
Bumps [github.com/containers/storage](https://github.com/containers/storage) from 1.35.0 to 1.36.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.35.0...v1.36.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-09-13 04:31:09 +00:00
Daniel J Walsh fd50dccd46 Enable ipv6 for rootless users by default
Fixes containers/podman#10889

Inspired by @rugk

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-09-12 06:31:56 -04:00
Daniel J Walsh a5bac2096a Add support for image_copy_tmp_dir
Allow users to set the default location for the temporary files used
during image pulls and pushes.

Defaults to /var/tmp;

Overridden via "TMPDIR" environment variable.

Allow special flag "storage" to indicate the the storage should use
the tmp directory in containers/storage/tmp.

Needed to fix: https://github.com/containers/podman/issues/11107

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-09-11 04:51:27 -04:00
OpenShift Merge Robot 00438ee425 Merge pull request #758 from Luap99/helperBinDir
Add HelperBinariesDir field to engine config
2021-09-11 04:49:18 -04:00
Paul Holzinger 25622da26e Add HelperBinariesDir field to engine config
This field contains a list of directories which should be used to store
some helper binaries, e.g. gvproxy.

Also add a FindHelperBinary method to the config struct to get the full
path to a helper binary.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2021-09-10 13:38:19 +02:00
dependabot[bot] 43874bc31e build(deps): bump github.com/opencontainers/selinux from 1.8.4 to 1.8.5
Bumps [github.com/opencontainers/selinux](https://github.com/opencontainers/selinux) from 1.8.4 to 1.8.5.
- [Release notes](https://github.com/opencontainers/selinux/releases)
- [Commits](https://github.com/opencontainers/selinux/compare/v1.8.4...v1.8.5)

---
updated-dependencies:
- dependency-name: github.com/opencontainers/selinux
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-09-10 04:30:23 +00:00
Paul Holzinger 4bd5b0f4bd Fix the fallback runtime path
Podman should not use `/tmp/run-...`. The Podman PR#8241 changed the
path to `/tmp/podman-run-...` and added systemd tmpfile config to make
sure the path is not removed. However the tmpDir is set in c/common and
was never changed.

Fixes containers/podman#11478

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2021-09-08 14:26:25 +02:00
Reinhard Tartler 32d1b83191 docs/containers.conf.5.md: Fix manpage section
Avoids a nroff warning in the generated manpage

[CI:DOCS]

Signed-off-by: Reinhard Tartler <siretart@tauware.de>
2021-09-04 18:37:13 +02:00
OpenShift Merge Robot 4d13eae581 Merge pull request #754 from mheon/rootlessnetworking_cni_osx
Switch default Rootless Networking to "CNI" for OSX
2021-09-02 09:09:20 -04:00
OpenShift Merge Robot f8cff3dff3 Merge pull request #753 from flouthoc/remove-image-options-add-lookup-manifest
remove-image: Add optional `LookupManifest` to RemoveImagesOptions.
2021-09-02 05:52:22 -04:00
Aditya Rajan 29da01d939 remove-image: Add optional LookupManifest to RemoveImagesOptions.
Following flag allows user to configure RemoveImages in a manner so that
remove func becomes exclusive to removing manifests when needed and not
removing underlying referenced images.

Signed-off-by: Aditya Rajan <arajan@redhat.com>
2021-09-02 14:21:51 +05:30
Matthew Heon 92ebb4a858 Switch default Rootless Networking to "CNI" for OSX
This should better support rootless CNI usescases.

Fixes https://github.com/containers/podman/issues/11396

Signed-off-by: Matthew Heon <mheon@redhat.com>
2021-09-01 15:57:00 -04:00
unknowndevQwQ 43bd1ced8a add some cni plugin paths
add some possible paths for the cni plugin to be stored

Replaces: containers/common#728

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2021-08-31 06:23:16 -04:00
Valentin Rothberg 55d18c545f libimage: disk usage: catch corrupted images
Make sure to check an image for corruption before running disk usage on
it.  Such checks are already applied on various execution paths but not
yet on disk usage.

Further update the corrupted-image error to include that the image
should be removed to resolve the error.  This should ultimately guide
users to resolve the issue.

Fixes: containers/common#751
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-08-31 11:09:21 +02:00
flouthoc bfb9606066 runtime: Add ReturnManifestIfPresent to LookupImageOptions
If matching images resolves to a manifest list, return manifest list
instead of resolving to image instance, if manifest list is not found
try resolving image.

Signed-off-by: Aditya Rajan <flouthoc.git@gmail.com>
2021-08-30 14:16:32 +05:30
dependabot[bot] 905cba6045 build(deps): 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 11:24:31 +00:00
dependabot[bot] 5f49795da7 build(deps): bump github.com/containers/storage from 1.34.1 to 1.35.0
Bumps [github.com/containers/storage](https://github.com/containers/storage) from 1.34.1 to 1.35.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.34.1...v1.35.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-26 04:36:28 +00:00
Giuseppe Scrivano 639e8c87d0 seccomp: allow memfd_secret
memfd_secret is a new syscall that will be added to Linux 5.14

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2021-08-25 18:03:37 +02:00
Chris Evich 629d66fdbb Cirrus: Use fresher VM images
Signed-off-by: Chris Evich <cevich@redhat.com>
2021-08-24 16:15:04 -04:00
dependabot[bot] a1951b69f2 build(deps): bump github.com/opencontainers/runc from 1.0.1 to 1.0.2
Bumps [github.com/opencontainers/runc](https://github.com/opencontainers/runc) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/opencontainers/runc/releases)
- [Commits](https://github.com/opencontainers/runc/compare/v1.0.1...v1.0.2)

---
updated-dependencies:
- dependency-name: github.com/opencontainers/runc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-24 04:24:58 +00:00
dependabot[bot] 0beb1dc3c9 build(deps): bump github.com/onsi/gomega from 1.15.0 to 1.16.0
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.15.0 to 1.16.0.
- [Release notes](https://github.com/onsi/gomega/releases)
- [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md)
- [Commits](https://github.com/onsi/gomega/compare/v1.15.0...v1.16.0)

---
updated-dependencies:
- dependency-name: github.com/onsi/gomega
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-08-23 04:37:26 +00:00
OpenShift Merge Robot c22e93e1b0 Merge pull request #736 from xatier/main
Add space trimming check in sysctl.Validate
2021-08-20 05:34:25 -04:00
xatier 8fbbdd14fc Update pkg/sysctl/sysctl.go
Co-authored-by: Valentin Rothberg <rothberg@redhat.com>
2021-08-19 19:29:53 -07:00
dependabot[bot] f9539ac696 build(deps): 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 04:37:14 +00:00
xatier d35d150bf7 Update pkg/sysctl/sysctl.go
Co-authored-by: Valentin Rothberg <rothberg@redhat.com>
2021-08-17 09:53:55 -05:00
xatier 6b081c39b1 Add space trimming check in sysctl.Validate
Sync with https://github.com/containers/podman/pull/11224

Signed-off-by: Yan-Ming Li <xatierlike@gmail.com>
2021-08-17 09:52:26 -05:00
openshift-ci[bot] 49043c6d81 Merge pull request #734 from containers/dependabot/go_modules/github.com/containers/storage-1.34.1
build(deps): bump github.com/containers/storage from 1.34.0 to 1.34.1
2021-08-17 10:55:28 +00:00
openshift-ci[bot] a561719a86 Merge pull request #735 from vrothberg/untag
fix untag + v0.43.2
2021-08-17 10:50:28 +00:00
dependabot[bot] b4b99cf122 build(deps): 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 10:47:14 +00:00
openshift-ci[bot] 3a771ec113 Merge pull request #732 from xatier/main
Fix `pkg/sysctl` path typo
2021-08-17 10:38:28 +00:00
Valentin Rothberg 99acc35c1d bump to v0.43.3-dev
Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-08-17 11:12:57 +02:00
Valentin Rothberg 457d53bbaf v0.43.2
* libimage: relax untag by digest checks
* path: dest paths inside container should always be treated as *nix type

Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
2021-08-17 11:12:52 +02:00