Commit Graph

24116 Commits

Author SHA1 Message Date
Matthew Heon e66b788a51 Mount volumes before copying into a container
This solves several problems with copying into volumes on a
container that is not running.

The first, and most obvious, is that we were previously entirely
unable to copy into a volume that required mounting - like
image volumes, volume plugins, and volumes that specified mount
options.

The second is that this fixed several permissions and content
issues with a fresh volume and a container that has not been run
before. A copy-up will not have occurred, so permissions on the
volume root will not have been set and content will not have been
copied into the volume.

If the container is running, this is very low cost - we maintain
a mount counter for named volumes, so it's just an increment in
the DB if the volume actually needs mounting, and a no-op if it
doesn't.

Unfortunately, we also have to fix permissions, and that is
rather more complicated. This involves an ugly set of manual
edits to the volume state to ensure that the permissions fixes
actually worked, as the code was never meant to be used in this
way. It's really ugly, but necessary to reach full Docker
compatibility.

Fixes #24405

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2024-11-27 08:09:50 -05:00
Matt Heon 44b0c24ca5 Revert "libpod: remove shutdown.Unregister()"
This reverts commit 5de7b7c3f3.

We now require the Unregister shutdown handler function for
handling unmounting named volumes after `podman cp` into a
stopped container.

Signed-off-by: Matt Heon <mheon@redhat.com>
2024-11-27 08:09:50 -05:00
openshift-merge-bot[bot] ceee7cb0a6
Merge pull request #24682 from lsm5/main-packit-remove-epel-targets
[skip-ci] Packit: remove epel and re-enable c9s
2024-11-26 15:11:23 +00:00
openshift-merge-bot[bot] 0cfe47bdfa
Merge pull request #24677 from M1cha/network-create-docs
Add support for bridge mode
2024-11-26 14:21:54 +00:00
Michael Zimmermann e608874004 docs: improve documentation for internal networks
This goes into more detail about what this option actually does.

Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
2024-11-26 14:24:44 +01:00
Michael Zimmermann 697c4181d2 docs: document bridge mode option
Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
2024-11-26 14:24:44 +01:00
Lokesh Mandvekar 415d762475
[skip-ci] Packit: remove epel and re-enable c9s
We're moving away from proper rhel testing on upstream because of the
slower pace of RHEL. This has already been done on aardvark-dns and some
others.

CentOS 9 Stream does move fast enough that we can re-enable it here.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2024-11-26 15:05:01 +05:30
openshift-merge-bot[bot] e6237bbf5b
Merge pull request #24674 from Luap99/OWNERS
OWNERS: remove edsantiago
2024-11-25 20:44:27 +00:00
openshift-merge-bot[bot] 54222ac23d
Merge pull request #24671 from containers/renovate/github.com-onsi-gomega-1.x
fix(deps): update module github.com/onsi/gomega to v1.36.0
2024-11-25 20:41:44 +00:00
openshift-merge-bot[bot] be8a4abf62
Merge pull request #24676 from containers/renovate/golangci-golangci-lint-1.x
chore(deps): update dependency golangci/golangci-lint to v1.62.2
2024-11-25 20:39:01 +00:00
renovate[bot] e5ed7847c1
chore(deps): update dependency golangci/golangci-lint to v1.62.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-25 17:38:01 +00:00
Michael Zimmermann e16f14a44d vendor: update containers/common
Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
2024-11-25 18:29:16 +01:00
Paul Holzinger ef565b76f2
OWNERS: remove edsantiago
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-11-25 18:17:10 +01:00
renovate[bot] c2dcfca4ca
fix(deps): update module github.com/onsi/gomega to v1.36.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-25 14:43:41 +00:00
openshift-merge-bot[bot] 9d3d0c7817
Merge pull request #24617 from containers/renovate/common-image-and-storage-deps
fix(deps): update github.com/containers/common digest to ceceb40
2024-11-25 14:43:01 +00:00
openshift-merge-bot[bot] 70c255955a
Merge pull request #21062 from gavinkflam/base-hosts-file-flag
Add --hosts-file flag; Add nohosts to remote build APIs
2024-11-25 14:40:18 +00:00
openshift-merge-bot[bot] aba98ad072
Merge pull request #24665 from ksw2000/refactor-eventer-type
refact: EventerType and improve consistency
2024-11-25 13:23:40 +00:00
renovate[bot] 506fec1fa9
fix(deps): update github.com/containers/common digest to ceceb40
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-25 12:31:03 +00:00
openshift-merge-bot[bot] 08908fbc4a
Merge pull request #24659 from containers/renovate/github.com-stretchr-testify-1.x
fix(deps): update module github.com/stretchr/testify to v1.10.0
2024-11-25 10:46:12 +00:00
ksw2000 e4e7bc41f3 refact: EventerType and improve consistency
1. Completed the EventerType comment.
2. Changed EventerType to be represented as a string.
3. Since EventerType is designed to be entirely lowercase, changed the comparison to use lowercase instead of uppercase.
4. Renamed newEventJournalD to newJournalDEventer.
5. Removed redundant error-checking steps in events_linux.go.

Signed-off-by: ksw2000 <13825170+ksw2000@users.noreply.github.com>
2024-11-25 08:52:53 +00:00
Gavin Lam 4f7395f93a
Add --hosts-file flag to container and pod commands
* Add --hosts-file flag to container create, container run and pod create
* Add HostsFile field to pod inspect and container inspect results
* Test BaseHostsFile config in containers.conf

Signed-off-by: Gavin Lam <gavin.oss@tutamail.com>
2024-11-24 22:00:34 -05:00
Gavin Lam dc564257a2
Add nohosts option to /build and /libpod/build
Signed-off-by: Gavin Lam <gavin.oss@tutamail.com>
2024-11-24 22:00:31 -05:00
renovate[bot] 936461e3c2
fix(deps): update module github.com/stretchr/testify to v1.10.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-23 12:42:26 +00:00
openshift-merge-bot[bot] 5d7700bc41
Merge pull request #24643 from ygalblum/quadlet-build-no-space
Quadlet - Use = sign when setting the pull arg for build
2024-11-22 20:40:47 +00:00
Ygal Blum 13affe96d6 Quadlet - Use = sign when setting the pull arg for build
Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
2024-11-22 15:06:50 -05:00
openshift-merge-bot[bot] 07683280c8
Merge pull request #24653 from Luap99/win-installer
win-installer test: revert to v5.3.0
2024-11-22 18:20:30 +00:00
Paul Holzinger 916b805f97
win-installer test: revert to v5.3.0
Do not pull from a moving target, use a defined version so updates must
happen in a PR and do not break others.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-11-22 17:35:37 +01:00
openshift-merge-bot[bot] d85ac938e6
Merge pull request #24442 from Honny1/change-healthcheck-config-via-podman-update
Configure HealthCheck with `podman update`
2024-11-22 15:57:30 +00:00
openshift-merge-bot[bot] ff9601d383
Merge pull request #24615 from containers/renovate/github.com-containers-buildah-digest
fix(deps): update github.com/containers/buildah digest to 52437ef
2024-11-22 15:13:29 +00:00
openshift-merge-bot[bot] 44601fdd58
Merge pull request #24620 from containers/renovate/github.com-crc-org-crc-v2-2.x
fix(deps): update module github.com/crc-org/crc/v2 to v2.44.0
2024-11-21 16:29:29 +00:00
renovate[bot] 5f907e4850
fix(deps): update module github.com/crc-org/crc/v2 to v2.44.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-21 10:14:26 +00:00
openshift-merge-bot[bot] 60ddddcf44
Merge pull request #24635 from containers/renovate/github.com-onsi-ginkgo-v2-2.x
fix(deps): update module github.com/onsi/ginkgo/v2 to v2.22.0
2024-11-21 10:04:20 +00:00
openshift-merge-bot[bot] e9e800aacf
Merge pull request #24628 from containers/renovate/setuptools-75.x
chore(deps): update dependency setuptools to ~=75.6.0
2024-11-21 10:01:37 +00:00
renovate[bot] 34d63459ba
fix(deps): update module github.com/onsi/ginkgo/v2 to v2.22.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-21 04:19:54 +00:00
renovate[bot] 3096681ce3
chore(deps): update dependency setuptools to ~=75.6.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-20 20:27:53 +00:00
openshift-merge-bot[bot] a6ede195f1
Merge pull request #24624 from l0rd/fix-wsl-auto-install
On Windows avoid installing WSL during an update of Podman
2024-11-20 20:26:56 +00:00
Mario Loriedo 07aaa7832a Update windows installer tests
The windows installer tests are command line / non interactive. To test as much as
possible the GUI / interactive scenario (that is what user do), update tests
need to use the installer with the default options. That's because when using the GUI
for an update, changing options is not possible.

Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
2024-11-20 13:54:12 +01:00
Mario Loriedo 7162c58ba2 Windows: don't install WSL/HyperV on update
The condition `NOT Installed` had not effect and has been replaced with
`NOT WIX_UPGRADE_DETECTED` that is `true` during installation and
`false` during updates.

The `ExePackage` WSL Kernel Install is also not installed if Podman is
already present.

Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
2024-11-20 13:47:05 +01:00
Mario Loriedo c6549fc25b Switch to non-installing WSL by default
The Windows installer GUI has a checkbox to choose if WSL and HyperV
should be installed as part of the installation of Podman. Now, by
default, that checkbox is disabled for both WSL and HyperV.

Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
2024-11-20 13:43:41 +01:00
renovate[bot] 28305685f6
fix(deps): update github.com/containers/buildah digest to 52437ef
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-20 00:16:19 +00:00
Jan Rodák a1249425bd
Configure HealthCheck with `podman update`
New flags in a `podman update` can change the configuration of HealthCheck when the container is started, without having to restart or recreate the container.

This can help determine why a given container suddenly started failing HealthCheck without interfering with the services it provides. For example, reconfigure HealthCheck to keep logs longer than the usual last X results, store logs to other destinations, etc.

Fixes: https://issues.redhat.com/browse/RHEL-60561

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2024-11-19 19:44:14 +01:00
openshift-merge-bot[bot] dd97d3e195
Merge pull request #24612 from edsantiago/fix-160
CI: --image-volume test: robustify
2024-11-19 18:21:03 +00:00
Ed Santiago 97ed067d1a CI: --image-volume test: robustify
Test is failing on 1mt because of differences between 'stat'
command output and /proc/mounts. Solution: compare stat %t
(hex filesystem type), not %T (human-readable). This should
match no matter what kernel version or version of stat on
host/container.

Fixes: #24611

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-11-19 10:03:55 -07:00
openshift-merge-bot[bot] 569fefc783
Merge pull request #24561 from containers/renovate/google.golang.org-protobuf-1.x
fix(deps): update module google.golang.org/protobuf to v1.35.2
2024-11-19 14:35:30 +00:00
openshift-merge-bot[bot] 183cf98069
Merge pull request #24565 from mheon/fix_24555
Overlay mounts supersede image volumes & volumes-from
2024-11-19 14:10:46 +00:00
openshift-merge-bot[bot] 1aab8f5fb5
Merge pull request #24607 from Luap99/api-reference
docs: add 5.3 as Reference version
2024-11-19 11:39:31 +00:00
Paul Holzinger e6e9d2c21c
docs: add 5.3 as Reference version
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-11-19 11:31:49 +01:00
openshift-merge-bot[bot] ec691c7112
Merge pull request #24568 from Luap99/ssh_config
remote: fix ssh_config handling
2024-11-18 18:30:26 +00:00
openshift-merge-bot[bot] 9a66cbf0ea
Merge pull request #24596 from edsantiago/bump-systemd
Bump CI VMs
2024-11-18 15:44:45 +00:00
openshift-merge-bot[bot] 1712594493
Merge pull request #24592 from giuseppe/honor-pivot-root-build
libpod: pass down NoPivotRoot to Buildah
2024-11-18 15:02:55 +00:00