Commit Graph

26109 Commits

Author SHA1 Message Date
renovate[bot]
7819879776 chore(deps): update dependency setuptools to v80
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-27 17:44:15 +00:00
Lewis Roy
6e7de438cc bug: Correct Docker compat REST API image delete endpoint
The Docker `-XDELETE image/$name?force=true` endpoint only removes
containers using an image if they are in a non running state.

In Podman, when forcefully removing images we also forcefully delete
containers using the image including running containers.

This patch changes the Docker image force delete compat API to act like the
Docker API while maintaining commands like `podman rmi -f $imagename`

It also corrects the API return code returned when an image is requested
to be deleted with running containers using it.

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

Signed-off-by: Lewis Roy <lewis@redhat.com>
2025-04-27 20:51:11 +10:00
Cesar Goncalves
a969dbd73e update podman socket output to include also exposed ports
Fixes https://github.com/containers/podman/issues/25851

Co-authored-by: Brent Baude <bbaude@redhat.com>
Signed-off-by: Cesar Goncalves <mail@cesargoncalves.com>
2025-04-27 11:11:28 +01:00
Arthur Sengileyev
585f046e95 Disable FS mount in volume only test
The test is checking that named volumes could be used. FS mount is not
needed and there is no code testing anything around it.

Signed-off-by: Arthur Sengileyev <arthur.sengileyev@gmail.com>
2025-04-26 13:44:36 +03:00
flouthoc
4268c61dd0 Added tests for inheritlabel fix
Signed-off-by: flouthoc <flouthoc.git@gmail.com>
2025-04-25 19:29:18 +02:00
Matej Vašek
0c4d023822 Fix: inheritlabels=true if query param absent
The inheritlabels param must default to true if query param is absent.

Signed-off-by: Matej Vašek <matejvasek@gmail.com>
2025-04-25 19:17:00 +02:00
openshift-merge-bot[bot]
5c5ecdea88 Merge pull request #24150 from dfr/freebsd-system-reset
libpod: fix a confusing error message from 'podman system reset' on F…
2025-04-25 15:34:00 +00:00
Matt Heon
75f05a9807 Add Mohan Boddu as community manager
This PR nominates Mohan Boddu as a new Community Manager for the
Podman Container Tools project.

Signed-off-by: Matt Heon <mheon@redhat.com>
2025-04-25 10:55:57 -04:00
openshift-merge-bot[bot]
ac12341046 Merge pull request #25942 from rcmadhankumar/set-default-mount-option
Remove using `rw` as a default mount option
2025-04-25 13:35:29 +00:00
openshift-merge-bot[bot]
2c317bb519 Merge pull request #25977 from containers/renovate/golangci-golangci-lint-2.x
chore(deps): update dependency golangci/golangci-lint to v2.1.5
2025-04-25 11:53:53 +00:00
openshift-merge-bot[bot]
463e3a5d8a Merge pull request #25978 from containers/renovate/github.com-cpuguy83-go-md2man-v2-2.x
fix(deps): update module github.com/cpuguy83/go-md2man/v2 to v2.0.7
2025-04-25 10:44:50 +00:00
renovate[bot]
710c077342 chore(deps): update dependency golangci/golangci-lint to v2.1.5
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-25 10:20:27 +00:00
renovate[bot]
7e14a03409 fix(deps): update module github.com/cpuguy83/go-md2man/v2 to v2.0.7
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-25 00:30:23 +00:00
openshift-merge-bot[bot]
c28fd3cbd8 Merge pull request #25966 from Luap99/start-rm
remote: don't print bogus error when starting container attached
2025-04-24 18:58:00 +00:00
Ygal Blum
633f727f2d Quadlet - use helper function for handling key=val type keys
Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
2025-04-24 14:15:39 -04:00
openshift-merge-bot[bot]
2b647bf3f8 Merge pull request #25964 from SuNNjek/quadlet-pod-labels
Add Label to quadlet pod
2025-04-24 15:31:07 +00:00
openshift-merge-bot[bot]
83d989f3c3 Merge pull request #25960 from ricardobranco777/bats_tap_option
hack/bats: Pass --tap (-t) option to bats
2025-04-24 14:41:07 +00:00
Robin Heinemeier
802fc15b1e Add Label to quadlet pod
Signed-off-by: Robin Heinemeier <sunnerlp@gmail.com>
2025-04-24 13:37:42 +00:00
Paul Holzinger
0eac57ed31 podman start: remove container if needed
Like podman run --rm, start --attach must also ensure the contianer is
removed before it exist. Otherwise there is a race where the container
still exist after the command exits, because removal would only happen
by the cleanup process in the background.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-24 15:32:50 +02:00
openshift-merge-bot[bot]
5a823e33ef Merge pull request #25963 from lsm5/packit-no-merge-pr-in-ci
Packit: couple of fixes for release process
2025-04-24 12:32:29 +00:00
Paul Holzinger
3a2d7587fe remote: don't print bogus error when starting container attached
This looks like debug leftover, in any case this is not an error so
simply remove the line.

Fixes #25965

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-24 14:31:22 +02:00
Lokesh Mandvekar
9b751a27b9 [skip-ci] Packit: do not merge PR in CI
Packit's default behaviour of merging commits on PR copr build jobs ends
up creating a HEAD commit ID that doesn't exist upstream. This commit
disables that behaviour.

This way, copr builds from release PR can be used for podman-machine-os
builds.

Co-authored-by: Matej Focko <mfocko@users.noreply.github.com>
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2025-04-24 16:48:33 +05:30
Lokesh Mandvekar
e443bffe5a [skip-ci] Packit: re-enable fedora-41 targets
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2025-04-24 16:17:22 +05:30
Ricardo Branco
4dd9340a56 hack/bats: Pass --tap (-t) option to bats
Signed-off-by: Ricardo Branco <rbranco@suse.de>
2025-04-24 11:38:29 +02:00
openshift-merge-bot[bot]
bc81470714 Merge pull request #25956 from ricardobranco777/hack_bats_multiple
hack/bats: Fix to allow multiple tests
2025-04-24 07:51:08 +00:00
Ricardo Branco
bfd5de309f hack/bats: Fix to allow multiple tests
Signed-off-by: Ricardo Branco <rbranco@suse.de>
2025-04-23 18:43:05 +02:00
openshift-merge-bot[bot]
c55353f1d0 Merge pull request #25955 from ricardobranco777/podman_rootless_user
hack/bats: Allow specifying PODMAN_ROOTLESS_USER
2025-04-23 14:11:52 +00:00
openshift-merge-bot[bot]
7e57bb1474 Merge pull request #25953 from containers/renovate/github.com-docker-docker-28.x
fix(deps): update module github.com/docker/docker to v28.1.1+incompatible
2025-04-23 12:40:34 +00:00
rcmadhankumar
bf7dcd5619 Fix: Remove appending rw as the default mount option
The backstory for this is that runc 1.2 (opencontainers/runc#3967)
fixed a long-standing bug in our mount flag handling (a bug that crun
still has). Before runc 1.2, when dealing with locked mount flags that
user namespaced containers cannot clear, trying to explicitly clearing
locked flags (like rw clearing MS_RDONLY) would silently ignore the rw
flag in most cases and would result in a read-only mount. This is
obviously not what the user expects.

What runc 1.2 did is that it made it so that passing clearing flags
like rw would always result in an attempt to clear the flag (which was
not the case before), and would (in all cases) explicitly return an
error if we try to clear locking flags. (This also let us finally fix a
bunch of other long-standing issues with locked mount flags causing
seemingly spurious errors).

The problem is that podman sets rw on all mounts by default (even if
the user doesn't specify anything). This is actually a no-op in
runc 1.1 and crun because of a bug in how clearing flags were handled
(rw is the absence of MS_RDONLY but until runc 1.2 we didn't correctly
track clearing flags like that, meaning that rw would literally be
handled as if it were not set at all by users) but in runc 1.2 leads to
unfortunate breakages and a subtle change in behaviour (before, a ro
mount being bind-mounted into a container would also be ro -- though
due to the above bug even setting rw explicitly would result in ro in
most cases -- but with runc 1.2 the mount will always be rw even if
the user didn't explicitly request it which most users would find
surprising). By the way, this "always set rw" behaviour is a departure
from Docker and it is not necesssary.

Signed-off-by: rcmadhankumar <madhankumar.chellamuthu@suse.com>
2025-04-23 17:18:03 +05:30
Ricardo Branco
c1ad54f89a hack/bats: Allow specifying PODMAN_ROOTLESS_USER
Signed-off-by: Ricardo Branco <rbranco@suse.de>
2025-04-23 13:44:06 +02:00
openshift-merge-bot[bot]
9c9bfeb504 Merge pull request #25750 from containers/renovate/github.com-mattn-go-sqlite3-1.x
fix(deps): update module github.com/mattn/go-sqlite3 to v1.14.28
2025-04-23 10:47:43 +00:00
renovate[bot]
80993f2c3b fix(deps): update module github.com/docker/docker to v28.1.1+incompatible
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-23 09:54:18 +00:00
openshift-merge-bot[bot]
0f2d00617d Merge pull request #25939 from TomSweeneyRedHat/dev/tsweeney/buildah_v1.40
Bump to Buildah v1.40.0
2025-04-23 09:52:36 +00:00
openshift-merge-bot[bot]
0a65e7c203 Merge pull request #25949 from benoitf/mod-script
chore: use another script to get the version of gvproxy + fix download link
2025-04-23 09:19:37 +00:00
tomsweeneyredhat
10d768baaf Add inherit-labels option to Build API
Add the inherit-labels option to the build API and tweak the go.mod
after some unhappiness in my sandbox.

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2025-04-22 23:06:57 -04:00
tomsweeneyredhat
76b07dd48d Bump to Buildah v1.40.0
Bumps to Buildah v1.40.0 and adds the `--inherits-labels` option to
build and farm build man pages.

Also turn off the inherit-labels option test for now as it seems to be
rathr unhappy.

Issue for inherit-labels test failure: https://github.com/containers/podman/issues/25938

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2025-04-22 16:50:02 -04:00
Florent Benoit
75aec675d2 chore: use another script to get the version of gvproxy
Signed-off-by: Florent Benoit <fbenoit@redhat.com>
2025-04-22 22:04:08 +02:00
openshift-merge-bot[bot]
a3e132055d Merge pull request #25909 from baude/issue25884
Add ability to set layer media type for artifacts
2025-04-22 19:21:14 +00:00
openshift-merge-bot[bot]
9180f55953 Merge pull request #25893 from Luap99/new-images-f42
New images f42
2025-04-22 19:13:01 +00:00
openshift-merge-bot[bot]
7a009cc14b Merge pull request #25688 from evidolob/use-gvisor-from-gomod
Use gvisor-tap-vsock version from go.mod file
2025-04-22 18:34:20 +00:00
Yevhen Vydolob
ce0617eac4 Use gvisor-tap-vsock version from go.mod file
Instead of hardcoding gvisor version in different build files, we get gvisor version from go.mod file.

Signed-off-by: Yevhen Vydolob <yvydolob@redhat.com>
2025-04-22 18:44:04 +02:00
renovate[bot]
453a7a820d fix(deps): update module github.com/mattn/go-sqlite3 to v1.14.28
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-22 16:05:16 +00:00
Paul Holzinger
9a0f013f0a Revert "cirrus: test only on f41/rawhide"
This reverts commit 05fc9d2d6b.

Images use fedora f42 now.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-22 16:32:49 +02:00
Paul Holzinger
b0df21edef New images 2025-04-16
https://github.com/containers/automation_images/pull/404

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-22 16:32:48 +02:00
openshift-merge-bot[bot]
a75cba011e Merge pull request #25944 from containers/renovate/github.com-docker-docker-28.x
fix(deps): update module github.com/docker/docker to v28.1.1+incompatible
2025-04-22 13:59:56 +00:00
openshift-merge-bot[bot]
5372c15bf8 Merge pull request #25892 from Regis-Caelum/quadlet-pod-hostname
Add HostName to quadlet pod
2025-04-22 12:52:04 +00:00
openshift-merge-bot[bot]
18de85bb14 Merge pull request #25940 from TomSweeneyRedHat/dev/tsweeney/bud_readme
[CI DOCS] Touchup buildah-bud README.md
2025-04-22 12:46:37 +00:00
renovate[bot]
590e019240 fix(deps): update module github.com/docker/docker to v28.1.1+incompatible
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-22 12:45:23 +00:00
openshift-merge-bot[bot]
3c6a593485 Merge pull request #25917 from benoitf/vfkit-upgrade
feat: update vfkit binary to v0.6.1 in macOS installer
2025-04-22 12:43:49 +00:00
openshift-merge-bot[bot]
58c6d84bdd Merge pull request #25916 from containers/renovate/github.com-docker-docker-28.x
fix(deps): update module github.com/docker/docker to v28.1.0+incompatible
2025-04-22 11:43:06 +00:00