Commit Graph

26809 Commits

Author SHA1 Message Date
Jan Rodák
0ee8e7df79 Merge pull request #28246 from containers/renovate/zizmorcore-zizmor-action-0.x
[skip-ci] Update zizmorcore/zizmor-action action to v0.5.2
2026-03-11 13:25:05 +01:00
renovate[bot]
89d4fcd791 [skip-ci] Update zizmorcore/zizmor-action action to v0.5.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-03-11 09:26:04 +00:00
Jan Rodák
f7aefa46bb Merge pull request #28229 from giuseppe/fix-mount-opts-leak
specgen: fix pod mount options leaking between mounts
2026-03-10 12:40:15 +01:00
Giuseppe Scrivano
458fcaa1ba specgen: fix pod mount options leaking between mounts
Replace the JSON marshal/unmarshal round-trip in Inherit() with
copier.Copy. json.Unmarshal reuses existing slice backing arrays
and does not zero struct fields absent from the JSON (omitempty),
so mount options like "ro" from one mount would leak into another
mount at the same backing-array position.

Fixes the case where running:
  podman run --pod mypod \
    --mount type=bind,src=/a,target=/mylog \
    --mount type=bind,src=/b,target=/mytmp,ro=true \
    alpine touch /mylog/a

incorrectly fails with "Read-only file system" because /mylog
inherits "ro" from /mytmp.

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

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2026-03-10 09:14:38 +01:00
Matt Heon
a003f564ee Merge pull request #28223 from jankaluza/namesgenerator
libpod: include names-generator.go
2026-03-09 12:43:31 -04:00
Jan Kaluza
8c4edb6121 libpod: include names-generator.go
In the moby/moby, the namesgenerator is internal. We still want to
depend on it, so this commit copies it from moby/moby to our code-base.

The good thing is the file is frozen upstream, so no more changes are
going to appear in it.

Fixes: #27536.

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
2026-03-09 16:08:43 +01:00
Matt Heon
6b10beaba5 Merge pull request #28109 from simonbrauner/issue-22105
Make libpod return error status code on failure to pull image
2026-03-09 10:09:03 -04:00
Šimon Brauner
76095dbadc Make libpod return error status code on failure to pull image
Fixes: https://github.com/containers/podman/issues/22105

Signed-off-by: Šimon Brauner <sbrauner@redhat.com>
2026-03-09 14:26:14 +01:00
Lokesh Mandvekar
daadda83f1 Merge pull request #28210 from cyqsimon/quadlet-template-docs
Quadlet docs: add section on referencing other template Quadlets
2026-03-09 18:49:48 +05:30
Paul Holzinger
1c3cc92a5b Merge pull request #28057 from jankaluza/27536
api/compat: switch to moby/moby
2026-03-09 13:04:38 +01:00
Jan Kaluza
01688e7621 Deprecate Legacy structs and use port.String()
Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
2026-03-09 11:09:28 +01:00
Jan Kaluza
c10f685b43 api/compat: Backport jsonmessage.JSONProgress.String()
The JSONProgress is not part of moby/moby API anymore:
f4127d76c5

To stay compatible with the previous client version, this commit backports
the jsonmessage.JSONProgress.String() and uses it to genereate
the progress report.

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
2026-03-09 11:09:28 +01:00
Jan Kaluza
65585e4338 compat/network: Remove temporary ipvAddress variables.
Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
2026-03-09 11:09:28 +01:00
Jan Kaluza
56e555bfc2 api/compat: switch to moby/moby
Replace github.com/docker/docker API imports with github.com/moby/moby
across compat handlers, swagger models, and tests to align with upstream
type definitions.

Fixes: #27536.

Signed-off-by: Jan Kaluza <jkaluza@redhat.com>
2026-03-09 11:09:23 +01:00
Lokesh Mandvekar
5685ac5952 Merge pull request #28196 from MayorFaj/bug/28178-fix-cli-help-example-indentation
fix CLI help example indentation
2026-03-09 15:20:06 +05:30
cyqsimon
c30fe73dfb Quadlet docs: clarify behaviour of VolumeName default
Signed-off-by: cyqsimon <28627918+cyqsimon@users.noreply.github.com>
2026-03-09 11:54:05 +08:00
MayorFaj
31b956e0f1 Fix CLI help example indentation for multi-line examples
Signed-off-by: MayorFaj <mayorfaj@gmail.com>
2026-03-06 21:06:04 +00:00
Lokesh Mandvekar
014fd196d5 Merge pull request #28201 from Luap99/new-images
New images 2026-03-06
2026-03-06 21:27:05 +05:30
Paul Holzinger
5adac65c0a Merge pull request #28208 from mtrmac/tls-behavior-basics
Add --tls-details for (pull, push, run, login, logout)
2026-03-06 16:33:38 +01:00
Matt Heon
91035116ec Merge pull request #26203 from p12tic/log-labels
libpod: Implement --log-opt label=LABEL=Value
2026-03-06 10:05:07 -05:00
Paul Holzinger
dd83595619 New images 2026-03-06
Build in https://github.com/containers/automation_images/pull/434

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-03-06 14:48:48 +01:00
Povilas Kanapickas
636eb1a401 libpod: Implement --log-opt label=LABEL=Value
This allows things like compose project names to be associated with log
messages and later used in log processing and analysis.

Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2026-03-06 10:59:31 +02:00
cyqsimon
047e178298 Quadlet docs: add section on referencing other template Quadlets
Signed-off-by: cyqsimon <28627918+cyqsimon@users.noreply.github.com>
2026-03-06 16:40:22 +08:00
Miloslav Trmač
7fd3be8288 Add --tls-details support for (podman login) and (podman logout)
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2026-03-06 00:33:14 +01:00
Miloslav Trmač
13e1d5af4b PARTIALLY TESTED: Add --tls-details, use it to affect libimage and the like
For remote operation, start the remote service with --tls-details:
using --tls-details on the client side will only affect client's
connection.

This should eventually include many more tests - track down all current
uses of libpod.Runtime.{SystemContext,imageContext,LibimageRuntime}.
That will come later

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2026-03-05 23:13:17 +01:00
Matt Heon
b9da144e2d Merge pull request #27939 from l0rd/cp-ca-certs-doc
[Design Doc] New feature to import local CA certs
2026-03-05 09:20:40 -05:00
Miloslav Trmač
0d27a18a60 Merge pull request #28200 from Luap99/vendor
vendor: update container-libs to latest
2026-03-05 14:59:19 +01:00
Paul Holzinger
56ce3368be vendor: update container-libs to latest
This needs one fix for the API interface for download.FromURL() which was
changed.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-03-05 13:00:33 +01:00
Paul Holzinger
a2f0e0da47 artifact: do not set SystemContext in CopyOptions
We set it not nil anyway so it is not used and it is already removed
from common:
544c8fc8cf

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-03-05 12:53:40 +01:00
Paul Holzinger
492eefd984 Merge pull request #28191 from p12tic/validate-log-driver
libpod: Validate that log tag requires journald driver
2026-03-04 16:59:32 +01:00
Povilas Kanapickas
9872cbd756 libpod: Validate that log tag requires journald driver
Currently validation that log tag requires journald driver is done in several
places and emits only warning. Making it an error and moving to
`(c *Container) validate()` is a more correct approach.

Signed-off-by: Povilas Kanapickas <povilas@radix.lt>
2026-03-04 14:48:46 +02:00
Paul Holzinger
8aad8d72e0 Merge pull request #28140 from ozgur-as/fix-clone-secret-env
Fix container clone with secret type=env
2026-03-04 13:04:11 +01:00
Paul Holzinger
988628c6d4 Merge pull request #28186 from mheon/add_danish_prakash_reviewer
Add Danish Prakash as a reviewer
2026-03-04 12:07:43 +01:00
Paul Holzinger
d2a0cef55c Merge pull request #28188 from mtrmac/sprintf-split
Don’t use `strings.Split(fmt.Sprintf("--a b …", …), " ")`
2026-03-04 12:01:12 +01:00
Lokesh Mandvekar
de80190295 Merge pull request #28167 from mtrmac/build-failures
Fix test build failures in non-default conditions
2026-03-04 15:21:37 +05:30
Miloslav Trmač
b2d381c7a2 Inline createCommands into the caller
There is exactly one caller, with two code paths, and each only
needs _half_ of the function - and they really only share the
parentFlags and Quiet logic. It's easier to do things
directly.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2026-03-04 00:26:10 +01:00
Miloslav Trmač
a725f55ff1 Make CreateCommands and ScpCreateCommandsOptions private
They are entirely private, and the type has no reason to
exist in the API definitions.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2026-03-04 00:20:43 +01:00
Miloslav Trmač
acdaa5372e Don't use strings.Split(fmt.Sprintf("--a b ...", ...), " ")
When we have the _precise_ knowledge of where the parameter boundaries
are, and an API that allows us to express that, just _do that_ instead
of completely unnecessarily worrying about spaces in parameter values.

Also, this allows us to format the code to make the option and value
correspondence much easier to see.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2026-03-04 00:14:37 +01:00
Miloslav Trmač
b1837f8824 Rename the fedoraMinimal constant to FEDORA_MINIMAL
... following the existing style.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2026-03-03 21:34:14 +01:00
Miloslav Trmač
cb9df63d63 Fix compilation of tests without CGo
Have the build conditions match the build conditions of the
referenced implementation.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2026-03-03 21:30:05 +01:00
Miloslav Trmač
c42350a5a2 Fix compilation of tests on arm64
fedoraMinimal is referenced in non-_test config_arm64.go
and config_ppc64le.go.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2026-03-03 21:30:05 +01:00
Paul Holzinger
afab7a444d Merge pull request #27412 from dvorst/fix/rootless-podman-in-podman-on-wsl
Fix: Rootless Podman-in-Podman on WSL
2026-03-03 21:04:12 +01:00
Matt Heon
5c52f029f6 Add Danish Prakash as a reviewer
His contributions to date more than justify the role.

Signed-off-by: Matt Heon <mheon@redhat.com>
2026-03-03 14:49:12 -05:00
Matt Heon
aefdaf317d Merge pull request #28170 from StaticRocket/bugfix/quadlet-list
fix(cmd/podman/quadlet): Behave like container ls
2026-03-03 13:03:07 -05:00
Miloslav Trmač
6d9359e340 Merge pull request #27989 from mheon/governance_changes
[Governance] Move inactive maintainers to alumni and clarify Github permissions
2026-03-03 18:33:10 +01:00
Randolph Sapp
33a36bd56b fix(cmd/podman/quadlet): Behave like container ls
Quadlet list always reports the heading, even when using custom
formatting strings. This doesn't follow the behavior of other podman
list commands. Borrow some logic and the "--noheading" flag from the
container list command to make this behavior uniform.

Signed-off-by: Randolph Sapp <rs@ti.com>
2026-03-03 10:04:37 -06:00
Matt Heon
09ebdfa0b0 Merge pull request #28166 from mtrmac/platform-restriction
RFC: Add `(linux || freebsd)` build requirements
2026-03-03 10:27:57 -05:00
Matt Heon
8f8b2b5a04 Merge pull request #28168 from mtrmac/tls-refactors
A bunch of refactoring prerequisites to #28043 + a behavior change of `--registries-conf`
2026-03-03 09:54:37 -05:00
Paul Holzinger
ccf6c3937a Merge pull request #28182 from kolyshkin/fix-teardown-log
test/system: fix some teardown error logging
2026-03-03 13:20:48 +01:00
Matt Heon
8b868f83af Governance: Make each role's GH permissions explicit
We were going through our Github permissions to make sure they
were consistent with MAINTAINERS.md when we realized that we did
not make it explicit what each level in our contributor ladder
should receive for permissions. This fixes that oversight. We
retain some flexibility (e.g. granting Triage to anyone who is
assisting with the project, but not enough to become a Reviewer)
but core privileges are now spelled out explicitly.

Signed-off-by: Matt Heon <mheon@redhat.com>
2026-03-02 20:10:48 -05:00