25999 Commits

Author SHA1 Message Date
306b2cc1b4 fix(deps): update module github.com/docker/docker to v28.5.0+incompatible
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-02 22:38:08 +00:00
77dd165e47 Merge pull request #27193 from shiavm006/fix-secret-ls-format-docs
secrets: align 'secret ls' format docs and completion
2025-10-02 19:40:20 +00:00
e87e2c0ab1 Merge pull request #27219 from containers/renovate/github.com-onsi-ginkgo-v2-2.x
fix(deps): update module github.com/onsi/ginkgo/v2 to v2.26.0
2025-10-02 19:25:10 +00:00
72ffd00c5a fix(deps): update module github.com/onsi/ginkgo/v2 to v2.26.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-02 15:28:39 +00:00
9570f99790 Merge pull request #27156 from rhatdan/inspect
Add artifact fallback to podman inspect command
2025-10-02 12:16:11 +00:00
00309d3955 secret ls: align docs, completion, and tests; fix formatting
- Use SecretListReport for --format completion and correct help text
- Update manpage placeholders and ordering per xref rules
- Add and adjust e2e tests; verify CreatedAt contains 'ago'
- gofmt formatting fixes

Signed-off-by: shiavm006 <shivammittal42006@gmail.com>
2025-10-02 17:33:38 +05:30
6405925f79 Add artifact fallback to podman inspect command
This commit implements automatic artifact fallback for the podman inspect command
as requested in GitHub issue #27075.

Changes made:
- Add ArtifactType constant to cmd/podman/common/inspect.go
- Update AutocompleteInspectType to include artifact type in completions
- Add artifact case to main inspect switch statement for explicit --type artifact
- Implement artifact fallback in inspectAll function for automatic detection
- Update shell completion to recognize artifacts in getEntityType function
- Update command help text, usage, and examples to include artifacts
- Update podman-inspect.1.md man page with artifact documentation
- Add comprehensive e2e tests for artifact inspect functionality

The inspect command now automatically falls back to artifact inspection when
no container, image, volume, network, or pod matches the specified name.
Users can also explicitly use --type artifact for direct artifact inspection.

This maintains backward compatibility while extending functionality to support
the artifact object type seamlessly.

Examples:
  podman inspect myartifact                        # Auto-detects artifact
  podman inspect --type artifact myartifact       # Explicit artifact type
  podman inspect --format '{{.Name}}' myartifact  # Format support

Fixes: https://github.com/containers/podman/issues/27075
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2025-10-02 06:52:32 -04:00
e47ae6741a Merge pull request #27204 from containers/renovate/github.com-shirou-gopsutil-v4-4.x
fix(deps): update module github.com/shirou/gopsutil/v4 to v4.25.9
2025-10-01 18:45:44 +00:00
d0212f91b3 Merge pull request #27126 from medsouz/unused-parameter
lint: reenable revive unused-parameter check
2025-10-01 16:17:31 +00:00
f9de4b033f Merge pull request #27205 from nimdrak/27115
test: remove outdated skip in podman run check personality support test
2025-10-01 15:22:36 +00:00
090304a054 lint: reenable revive unused-parameter check
Signed-off-by: Matt Souza <medsouz99@gmail.com>
2025-10-01 10:42:08 -04:00
004e6ced76 test: remove outdated skip in podman run check personality support test
Signed-off-by: ByoungUk Lee <nimdrak@gmail.com>
2025-10-01 15:12:43 +09:00
3b509022cd fix(deps): update module github.com/shirou/gopsutil/v4 to v4.25.9
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-01 03:30:56 +00:00
3747e3db3f Merge pull request #24601 from meln5674/feature/remote-tls
Support (m)TLS API Socket
2025-09-30 16:19:14 +00:00
353aa78629 Merge pull request #27195 from nimdrak/27118-2
test: fix "run healthcheck" bindings test
2025-09-30 15:30:10 +00:00
87b4f842de test: fix "run healthcheck" bindings test
Signed-off-by: ByoungUk Lee <nimdrak@gmail.com>
2025-09-30 22:58:34 +09:00
07423498af Merge pull request #27132 from NotSoFancyName/interface-completion
cmd: add autocomplete for network create --interface-name flag
2025-09-30 12:28:50 +00:00
ebde5d1563 cmd: add auto completion for network create --interface-name
Fixes: #27113

Signed-off-by: Volodymyr Pankin <volopank@gmail.com>
2025-09-30 13:50:57 +02:00
277530eacb Merge pull request #27191 from shiavm006/fix-readme-badge-libpod-reference
docs: fix Go Report Card badge to reference current repository
2025-09-30 09:55:17 +00:00
4f776c0585 Merge pull request #27192 from kolyshkin/modernize-2
Misc nits
2025-09-30 09:43:39 +00:00
e667532110 docs: point Go Report Card badge to v5 module path
Use github.com/containers/podman/v5 for both badge and report links so
Go Report Card analyzes the v5 module instead of legacy root.

Signed-off-by: shiavm006 <shivammittal42006@gmail.com>
2025-09-30 14:54:22 +05:30
ef0a7dd486 pkg/api/handlers/compat: use strings.CutPrefix
This way we don't check the string twice.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-09-29 22:17:51 -07:00
f198fe6b13 pkg/machine/wsl: use any instead of interface{}
Since Go 1.18, any is a type alias for interface{}. After commit 8631032556
there is still one last instance of interface{} left -- replace it
manually.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-09-29 22:11:39 -07:00
5824197774 pkg/machine/e2e: remove obsoleted comment
The code which comment refers to was removed by commit 2e4e1bb97c
("podman machine ssh handling"), so the comment is no longer valid.

Remove it.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-09-29 22:05:58 -07:00
8e55b67410 docs: fix Go Report Card badge to reference current repository
Update the Go Report Card badge in README.md to reference the current
containers/podman repository instead of the outdated containers/libpod
repository. This ensures consistency with other badges and prevents
potential confusion for contributors.

Signed-off-by: shiavm006 <shivammittal42006@gmail.com>
2025-09-30 10:17:18 +05:30
116e4588c4 Merge pull request #27173 from ninja-quokka/update_volume_mount_options
[DOCS] Update volume mount docs for subpath support
2025-09-29 15:38:38 +00:00
6a6a8aba94 Merge pull request #27159 from nothiaki/artifact-list-virtual-size
Added virtual size option in artifact ls format
2025-09-29 14:29:03 +00:00
b3ada6c8c1 Merge pull request #27178 from osamakader/fix-system-commands-error-handling
cmd/podman/system: fix error handling in renumber and migrate commands
2025-09-29 14:00:13 +00:00
e57a7f3694 Merge pull request #27172 from ninja-quokka/docker_compate_145
[compat api] Remove ContainerConfig field
2025-09-29 13:45:07 +00:00
b5de5efb3e cmd/podman/system: fix error handling in renumber and migrate commands
- Change function signatures to return error instead of calling os.Exit()
- Update cobra commands to use RunE instead of Run for proper error handling
- Remove unused imports (fmt, os, define)
- Remove FIXME comments about error handling inconsistency

This allows defer statements to run properly and improves testability.

Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
2025-09-27 23:51:12 +03:00
571866775d [compat api] Remove ContainerConfig field
ContainerConfig has been removed from v1.45

InspectResponse.Container has also been removed but it seems we never implemented it.

Ref: https://docs.docker.com/reference/api/engine/version-history/#v145-api-changes
Signed-off-by: Lewis Roy <lewis@redhat.com>
2025-09-27 20:50:30 +10:00
c11941eadb [DOCS] Update volume mount docs for subpath support
Support for the subpath option was added the named volume mount type in
[1] however this was missed from the docs.

[1] https://github.com/containers/podman/pull/24532`

Signed-off-by: Lewis Roy <lewis@redhat.com>
2025-09-27 15:41:40 +10:00
feb36e4fe6 Implement TLS API Support
* Added flags to point to TLS PEM files to use for exposing and connecting
  to an encrypted remote API socket with server and client authentication.
* Added TLS fields for system connection ls templates.
* Added special "tls" format for system connection ls to list TLS fields
  in human-readable table format.
* Updated remote integration and system tests to allow specifying a
  "transport" to run the full suite against a unix, tcp, tls, or mtls
  system service.
* Added system tests to verify basic operation of unix, tcp, tls, and mtls
  services, clients, and connections.

Signed-off-by: Andrew Melnick <meln5674.5674@gmail.com>
2025-09-26 09:09:54 -06:00
a27929aaaf test/e2e: fmt artifact list with virtual size
Signed-off-by: Celso Henrique Souza Silva <celsohenrique367@gmail.com>
2025-09-25 22:26:47 -03:00
a118fdf4e2 Merge pull request #27043 from baude/podman6hld
Add Podman 6 HLD
2025-09-25 20:48:44 +00:00
32c962a177 Add Podman 6 HLD
Adding a design document for Podman 6.  it is a high level design that tries to encompasses proposed changes to Podman and its runtime environment.  It should highlight major changes and features; but you will also find nitty detailed changes that have been idenitified.  It is quite possible things in this document will change but it allows for open, transparent communication.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2025-09-25 15:16:49 -05:00
f8f624852f Merge pull request #27053 from mheon/design_doc_conmon3
Add a design document for Conmon v3
2025-09-25 20:14:10 +00:00
9bca0d01d2 Add a design document for Conmon v3
Signed-off-by: Matt Heon <mheon@redhat.com>
2025-09-25 15:54:23 -04:00
2102673283 Merge pull request #27155 from rhatdan/artifact
Add creation timestamp to podman artifacts
2025-09-25 15:31:16 +00:00
8b86d14cba Merge pull request #27135 from containers/renovate/golangci-golangci-lint-2.x
chore(deps): update dependency golangci/golangci-lint to v2.5.0
2025-09-25 15:28:21 +00:00
09b71d19d9 Merge pull request #27123 from jdnvn/main
docs: add Containerfile doc link
2025-09-25 12:54:13 +00:00
4764b0e403 Add creation timestamp to podman artifacts
This commit implements automatic creation timestamp functionality for artifacts
as requested in GitHub issue #27081, allowing users to see when artifacts were created.

Changes made:
- Add org.opencontainers.image.created annotation with Unix nanoseconds timestamp during artifact creation
- Preserve original creation timestamp when using --append option
- Update artifact inspect and add man pages to document the new functionality
- Add comprehensive e2e and system BATS tests to verify creation timestamp behavior
- Store timestamp as integer (Unix nanoseconds) for programmatic access

The creation timestamp helps users understand artifact freshness, particularly
useful for AI models and other time-sensitive artifacts managed by tools like RamaLama.

Usage examples:
  podman artifact add myartifact:latest /path/to/file     # Creates with timestamp
  podman artifact inspect myartifact:latest              # Shows created annotation as integer
  podman artifact add --append myartifact:latest /file2  # Preserves original timestamp

Fixes: https://github.com/containers/podman/issues/27081
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2025-09-25 08:39:28 -04:00
af65d46476 Merge pull request #27160 from dnlzro/main
docs: clarify that `--userns=keep-id` runs container as host UID
2025-09-25 11:30:47 +00:00
2edf4aee5c Merge pull request #27122 from nothiaki/feat-sysctl-completion
feat(completions): sysctl completion
2025-09-25 09:32:03 +00:00
4652f5c3c6 docs: clarify that --userns=keep-id runs container as host UID
Fixes: #24934

Signed-off-by: Daniel Lazaro <git@dlazaro.ca>
2025-09-24 19:05:34 -04:00
5ae0e0de3d cmd/podman: added virtual size option in artifact ls
Signed-off-by: Celso Henrique Souza Silva <celsohenrique367@gmail.com>
2025-09-24 19:03:02 -03:00
d58e496a5e Merge pull request #27152 from ricardobranco777/fix_030_run
test: Fix test race in 030-run
2025-09-24 19:44:34 +00:00
63c40feb8c test: Fix test race in 030-run
Signed-off-by: Ricardo Branco <rbranco@suse.de>
2025-09-24 18:30:40 +02:00
f0f05e22c6 cmd/podman: completion for --sysctl in create/run
Signed-off-by: Celso Henrique Souza Silva <celsohenrique367@gmail.com>
2025-09-24 13:27:10 -03:00
d7f33a79e0 Merge pull request #27138 from nimdrak/27116
test: remove hack workaround in 'use plugin in containers'
2025-09-24 08:47:01 +00:00