Commit Graph

26224 Commits

Author SHA1 Message Date
Gregor Dschung
4ea22f1b29 Write DefaultEnvironment proxy values to /etc/systemd/user.conf.d/default-env.conf
Otherwise, the proxy values aren't passed to rootless podman.

Signed-off-by: Gregor Dschung <gregor@chkpnt.de>
2026-02-06 13:46:37 -05:00
Gregor Dschung
0e4dc26c05 Fix test proxyenv/env_test.go for systems that use proxy variables
Signed-off-by: Gregor Dschung <gregor@chkpnt.de>
2026-02-06 13:46:37 -05:00
Mayowa Fajobi
eb118bafb4 Fix healthcheck argument with spaces split in Docker API (#27818)
Fixes: #26519

Signed-off-by: MayorFaj <mayorfaj@gmail.com>
2026-02-06 13:46:37 -05:00
SanjayReddy91
3d02daa261 fix: prevent race condition during database initialization by using INSERT OR IGNORE.
Signed-off-by: SanjayReddy91 <gamerzdamnyt1234@gmail.com>

test: add test to check if SQLite DB config change will mitigate race condition when multiple podman process start at once.

Signed-off-by: SanjayReddy91 <gamerzdamnyt1234@gmail.com>

test: Check to ensure only one row was created in DBConfig table.

Signed-off-by: SanjayReddy91 <gamerzdamnyt1234@gmail.com>

test: Changed no of processes started at once to 20.

Signed-off-by: SanjayReddy91 <gamerzdamnyt1234@gmail.com>

test: rc reset to 0 to not affect second part of the test, db path is no longer hardcoded in test case.

Signed-off-by: SanjayReddy91 <gamerzdamnyt1234@gmail.com>

test: Reverted test case.

Signed-off-by: SanjayReddy91 <gamerzdamnyt1234@gmail.com>

lint: removed trailing whitespaces.

Signed-off-by: SanjayReddy91 <gamerzdamnyt1234@gmail.com>
2026-02-06 13:46:37 -05:00
Matt Heon
b41f2d3a3a Release notes for v5.8.0-RC1 (initial)
Signed-off-by: Matt Heon <matthew.heon@pm.me>
2026-02-06 13:46:37 -05:00
Bryan Parry
96dd0e1ad1 Fix podman run equivalent for HealthStartPeriod
Signed-off-by: Bryan Parry <bparry@redhat.com>
2026-02-06 13:46:37 -05:00
Caleb Xu
7477ffa9c6 libpod: simplify unnecessary loops
Signed-off-by: Caleb Xu <caxu@redhat.com>
2026-02-06 13:46:36 -05:00
Danish Prakash
d941f62082 secrets/create: remove pipe check and allow interactive stdin
Previously, `secret create` required stdin to be a pipe when using `-`,
blocking interactive stdin forcing users to use insecure patterns like
`echo "secret" | podman secret create <name>`.

Remove the pipe check to allow interactive stdin.

Closes #18591, #27879

Signed-off-by: Danish Prakash <contact@danishpraka.sh>
2026-02-06 13:46:36 -05:00
shiavm006
e1408e5a35 Fix container export emitting incorrect event type.
Signed-off-by: shiavm006 <shivammittal42006@gmail.com>
2026-02-06 13:46:36 -05:00
givensuman
0747179589 Add AppArmor key to quadlet .container files
Fixes: #27095
Signed-off-by: givensuman <givensuman@duck.com>
2026-02-06 13:46:36 -05:00
MayorFaj
f111cedfce fix(logs): enhance timestamp format to include timezone in logs
Signed-off-by: MayorFaj <mayorfaj@gmail.com>
2026-02-06 13:46:36 -05:00
MayorFaj
dac1e82710 fix(logs): add tests for nanosecond precision in log timestamps
Signed-off-by: MayorFaj <mayorfaj@gmail.com>
2026-02-06 13:46:36 -05:00
MayorFaj
d3bda38309 fix(logs): improve timestamp precision in container logs
Signed-off-by: MayorFaj <mayorfaj@gmail.com>
2026-02-06 13:46:36 -05:00
Colin Walters
06fe9b21c1 Fix missing newlines in stderr error messages
I happened to run `podman run --config=/path/to/file` and got
an error without a trailing newline, which was a bit jarring.

Fix the instances I noticed.

Assisted-by: OpenCode (Claude Opus 4.5)
Signed-off-by: Colin Walters <walters@verbum.org>
2026-02-06 13:46:36 -05:00
Paul Holzinger
17d7be80c9 test/system: remove apk from build
We do not use that package that we install for the test anyway and doing
this networking connection is causing heavy flakes at the moment.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-02-06 13:46:36 -05:00
Winter M
ac22866156 libpod: fix healthchecks not executing every interval on linux
By default, systemd sets a limit of how many times a service can start,
which means that if you have a healthcheck that runs more often than the
limits, systemd will refuse to start it with a message like "Start request
repeated too quickly." emitted to the journal.

Signed-off-by: Winter M <winter@antithesis.com>
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-02-06 13:46:36 -05:00
Vasileios Anagnostopoulos
fcaf1300d7 fix: skip execution of probes when initialDelaySeconds is not elapsed
According to the [Kubernetes docs](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#configure-probes)
the probes should be executed after the `initialDelaySeconds`. So to be
consistent with the kubernetes specs, skip the execution of the probes until
the `initialDelaySeconds` is elapsed.

Closes #27678

Signed-off-by: Vasileios Anagnostopoulos <anagnwstopoulos@hotmail.com>
2026-02-06 13:46:36 -05:00
Paul Holzinger
b81c17090d Merge pull request #27804 from Honny1/dev/v5.8/jrodak/local-api-artifact-add
[v5.8] Artifact add optimization on macOS and Windows
2026-02-06 17:46:41 +01:00
Matt Heon
b16073bb85 Merge pull request #28039 from TomSweeneyRedHat/dev/tsweeney/buildah_v1.43.0
[v5.8] Bump Buildah to v1.43.0
2026-02-06 11:41:33 -05:00
Paul Holzinger
efff41698b test/buildah-bud: skip failed remote test
This test does not work due its use of /proc/pid/fd which we cannot tar.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-02-06 16:40:42 +01:00
Tom Sweeney
37e511d216 [v5.8] Bump Buildah to v1.43.0
Bump Buildah to v1.43.0, this will also get:

c/storage v1.62.0
c/image v5.39.1
c/common v0.67.0

in preparation for the Podman v5.8 release.

Signed-off-by: Tom Sweeney <tomsweney@redhat.com>
2026-02-06 08:53:28 -05:00
Jan Rodák
7ae6813dfc [v5.8] artifact: Skip AddLocal optimization on WSL
The local API path optimization is ineffective on WSL because of NTFS mounting overhead.

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
(cherry picked from commit d889aeb6af)
2026-02-05 19:33:51 +01:00
Jan Rodák
3918d4ca75 [v5.8] Require absolute path for local API
Signed-off-by: Jan Rodák <hony.com@seznam.cz>
(cherry picked from commit 2f7094c0de)
2026-02-05 19:33:51 +01:00
Jan Rodák
6465c07d21 [v5.8] Add local artifact add API endpoint
Fixes: https://issues.redhat.com/browse/RUN-3385
Fixes: https://github.com/containers/podman/issues/26321

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
(cherry picked from commit 91af437471)
2026-02-05 19:33:46 +01:00
Matt Heon
f3a6457c8e Merge pull request #28029 from inknos/backport-quadlets-to-5.8
Backport quadlets to 5.8
2026-02-05 12:05:44 -05:00
Nicola Sella
bae88e1e5e Add GET /quadlets/{name}/exists
Fixes: https://issues.redhat.com/browse/RUN-4068

Signed-off-by: Nicola Sella <nsella@redhat.com>
2026-02-05 14:56:03 +01:00
Nicola Sella
d6023e431f Add DELETE /libpod/quadlets
Fixes: https://issues.redhat.com/browse/RUN-3742

Signed-off-by: Nicola Sella <nsella@redhat.com>
2026-02-05 14:55:46 +01:00
Nicola Sella
f2fcc7f09c Add POST /libpod/quadlets
Fixes: https://issues.redhat.com/browse/RUN-3743

Signed-off-by: Nicola Sella <nsella@redhat.com>
2026-02-05 14:53:34 +01:00
Nicola Sella
01e0db2931 Add GET /quadlets/{name}/file
Fixes: https://issues.redhat.com/browse/RUN-3716

Signed-off-by: Nicola Sella <nsella@redhat.com>
2026-02-05 14:52:30 +01:00
Paul Holzinger
ec1b7c989f Merge pull request #27738 from podmanbot/bump-5.7.2-dev
Bump Podman to v5.7.2-dev
2025-12-10 20:33:24 +01:00
Matt Heon
9550970714 Merge pull request #27742 from Luap99/5.7-backport
[v5.7] Use explicit download-artifact name and path for win-installer release
2025-12-10 12:12:35 -05:00
Mario Loriedo
2b52342af9 Use explicit download-artifact name and path for win-installer release
Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
(cherry picked from commit 22b10fa153)
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-12-10 17:30:42 +01:00
mheon
36c405582a Bump Podman to v5.7.2-dev
Signed-off-by: mheon <7735048+mheon@users.noreply.github.com>
2025-12-10 14:49:35 +00:00
openshift-merge-bot[bot]
e34994be03 Merge pull request #27732 from mheon/bump_571
Bump to v5.7.1
2025-12-10 14:13:26 +00:00
Matt Heon
f845d14e94 Bump to v5.7.1
Signed-off-by: Matt Heon <mheon@redhat.com>
v5.7.1
2025-12-09 15:11:03 -05:00
Matt Heon
6ecc622841 Final release notes update for v5.7.1
Signed-off-by: Matt Heon <mheon@redhat.com>
2025-12-09 15:10:13 -05:00
openshift-merge-bot[bot]
41a9712157 Merge pull request #27731 from openshift-cherrypick-robot/cherry-pick-27727-to-v5.7
[v5.7] kube play: Fix fd leak when handling symlinks
2025-12-09 20:05:32 +00:00
Christophe Fergeau
d0558385ec kube play: Fix fd leak when handling symlinks
The `*os.File` returned by `pathrs.OpenatInRoot` needs to
be closed before returning from `openSymlinkPath`

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
2025-12-09 18:29:38 +00:00
openshift-merge-bot[bot]
f0fc84b0fe Merge pull request #27726 from mheon/backports_571
Backports for v5.7.1
2025-12-09 17:28:09 +00:00
Matt Heon
214f5b2fd9 Update release notes for v5.7.1
Signed-off-by: Matt Heon <matthew.heon@pm.me>
2025-12-09 11:00:23 -05:00
Mikhail Dmitrichenko
678d1b4bfd avoid potential nil ptr deref in image rm
In function rm variable `report` might be initialized as nil as a result
of call
`registry.ImageEngine().Remove(registry.Context(), args, imageOpts)`.
Then, there is a call `registry.SetExitCode(report.ExitCode)` without
explicit nil check before. Check `len(rmErrors) > 0` doesn't guarantee
that report is a non-nil value.
So such call may lead to nil deref.

This commit adds check `report` for nil before its dereference.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Mikhail Dmitrichenko <m.dmitrichenko222@gmail.com>
2025-12-09 09:50:33 -05:00
Mikhail Dmitrichenko
ba6e527289 fix: check err returned by newGenericDecompressor
There is a couple of newGenericDecompressor function usages, where
returned possibly non-nil `err` is not checked before dereferencing
returned decompressor. It may lead to nil ptr dereferencing.

This commit adds check for `err` to prevent dereferencing potentially
nullable decompressor.

Found by Linux Verification Center (linuxtesting.org) with SVACE

Signed-off-by: Mikhail Dmitrichenko <m.dmitrichenko222@gmail.com>
2025-12-09 09:50:13 -05:00
Doug Rabson
68022802fc pkg/specgen/generate: Fix adding host devices on FreeBSD
This was not working when emulating Linux container images on FreeBSD.
The code to handle host devices on FreeBSD relies on the container
having a devfs mount. Unfortunately, the Linux emulation code which adds
this was happening after the host device handling. This changes the
logic so that host device management happens after Linux emulation.

Signed-off-by: Doug Rabson <dfr@rabson.org>
2025-12-09 09:47:22 -05:00
openshift-merge-bot[bot]
8e31387701 Merge pull request #27714 from l0rd/win-default-helper-binaries-cp
[v5.7] Replace FindExecutablePeer with FindHelperBinary
2025-12-09 01:20:41 +00:00
Mario Loriedo
a27cc24f80 Replace FindExecutablePeer with FindHelperBinary
The WSL machine start was using the function FindExecutablePeer that
ignores user configuration (helper_binaries_dir). FindHelperBinary
instead is used when starting the machine for the rest of the providers
and honors user configuration.

This commit requires 4877783c37

Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
2025-12-08 14:42:36 +01:00
openshift-merge-bot[bot]
ce8a3404c4 Merge pull request #27697 from TomSweeneyRedHat/dev/tsweeney/common-v0.66.1-v5.7
[v5.7] Bump common to v0.66.1
2025-12-06 15:43:40 +00:00
tomsweeneyredhat
dc7509fe38 [v5.7] Bump common to v0.66.1
Bump common to v0.66.1 in order to get some new
Windows functionality in for Podman v5.7.1

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2025-12-05 17:09:13 -05:00
openshift-merge-bot[bot]
02b167c0fc Merge pull request #27684 from openshift-cherrypick-robot/cherry-pick-27672-to-v5.7
[v5.7] libpod: fix workdir MkdirAll() all check
2025-12-04 18:46:01 +00:00
Paul Holzinger
7ce2e00ab1 libpod: simplify resolveWorkDir()
The code checks for isPathOnVolume and isPathOnMount so we can just use
the SecureJoin here directly to check for path existance.

Then instead of walking symlinks and trying to guess if they are on a
mount just assume if it is a link (path is different from the normal
joined one) then don't error out early and let the OCI runtime deal with
it. The runtime does produce a less readable error but it still fails
and we have much less fragile code.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-12-04 16:09:56 +00:00
Paul Holzinger
e576e002e9 libpod: fix workdir MkdirAll() all check
MkdirAll can fail with EEXIST when the path is a symlink and the target
doesn't exist. As such we should ignore the error.

Note there is something fundemantal wrong here with the path access as
it is following the symlink to the host, however it is only for a
stat() so it is not an security issue here.

Fixes: 637c264e2e ("fix issues found by nilness")

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-12-04 16:09:55 +00:00