Commit Graph

26799 Commits

Author SHA1 Message Date
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
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
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
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
Matt Heon
97a5e4ce01 Move Urvashi and Valentin to alumni
Both are no longer working on Podman and not actively
contributing. It was lovely working with them both, and we hope
to see them again, but it is necessary to ensure that our
maintainers are active. Move both to alumni as such.

Signed-off-by: Matt Heon <mheon@redhat.com>
2026-03-02 20:10:45 -05:00
Miloslav Trmač
a37bf83dfc Also set DestinationCtx in a copy
It shouldn't actually affect anything, but it's easier
to set it than worry.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2026-03-02 23:17:13 +01:00
Miloslav Trmač
e04b77e600 Consolidate the call to bindings.NewConnectionWithOptions
... to centralize the conversion from entities.PodmanConfig
to bindings.Options, we will add more code there.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2026-03-02 23:17:13 +01:00
Miloslav Trmač
fd86c3c25f Use pullOptions.systemContext in getDestArtifact
Right now, this correctly handles pullOptions.credentials
which were ignored previously (admittedly that field is never set
by anything...); in the future, it will ensure the two c/image users
won't get out of sync again.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2026-03-02 23:17:12 +01:00
Miloslav Trmač
5946f7afcf Factor out pullOptions.systemContext from pull
We will add another user.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2026-03-02 23:17:12 +01:00
Miloslav Trmač
e807ae4350 Make ocipull.Pull and PullOptions private
There are no external users, so make that clearer.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2026-03-02 23:17:12 +01:00
Miloslav Trmač
2d4fb908a1 Pass all of Options to tcpClient
This will make it easier to add one more option,
and removes a risk of passing options in an incorrect order.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2026-03-02 23:17:12 +01:00
Miloslav Trmač
d561f13d7c Simplify setting up Runtime.imageContext
- Don't allocate it on-demand, it will always be created in the end.
- Embed the SystemContext directly, without using a pointer,
  to make it clear it always exists.

Should not change behavior.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2026-03-02 23:16:49 +01:00
Miloslav Trmač
2ac337dbd8 Behavior change: Don't change TMPDIR in WithRegistriesConf
Previously, using WithRegistriesConf was setting
BigFilesTemporaryDir using buildah/internal/tmpdir, which (turns relative
$TMPDIR into absolute and) silently ignores invalid values in containers.conf
and uses /var/tmp in that case.

Without WithRegistriesConf, we would first initialize libimage with
BigFilesTemporaryDir = nil (causing libimage to determine BigFilesTemporaryDir
using a _different_ code path which fails on invalid containers.conf),
and only later set r.imageContext.BigFilesTemporaryDir.

It doesn't make sense that --registries-conf should affect TMPDIR processing
that way, and presumably the code path without --registries-conf is much
more frequently used and the one everyone expects; so drop this aspect of
WithRegistriesConf.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2026-03-02 23:06:53 +01:00
Kir Kolyshkin
2ab78a8d82 test/system: fix some teardown error logging
Statement

	for line in "${lines[*]}"

does not make sense since line will be a single value consisting of
all elements of lines array, space-separated.

It should be

	for line in "${lines[@]}"

if we want to iterate through each value.

Fixes: 00292ae1c4 ("systests: test instrumentation")
Fixes: c33ba70f95 ("system tests: instrument, to try to catch unlinkat-ebusy")
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-03-02 12:58:27 -08:00