Commit Graph

3462 Commits

Author SHA1 Message Date
axel7083
2369ed4b71 docs(podman-systemd.unit.5.md): remove false claim on Pods HostName key
Fixes https://github.com/containers/podman/issues/28089

Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
2026-02-13 14:49:47 +01:00
Paul Holzinger
88bd85367d Merge pull request #28008 from shiv-tyagi/vendor-detection
Discover GPU vendor from CDI spec before injecting GPU for --gpus option
2026-02-12 18:54:34 +01:00
Shiv Tyagi
d7a80dda1e Discover vendor from cdi spec before injecting CDI device for --gpu option
Signed-off-by: Shiv Tyagi <Shiv.Tyagi@amd.com>
2026-02-12 12:11:47 +00:00
Šimon Brauner
9727a43f5a Added setting UID and GID for volumes in quadlet
Related: https://issues.redhat.com/browse/RHEL-145863

Signed-off-by: Šimon Brauner <sbrauner@redhat.com>
2026-02-11 18:16:30 +01:00
Patrick Wicki
3856389fc9 podman-healthcheck-run: add --ignore-result flag
This is useful for triggering the execution of a healthcheck
without caring about it's result as long as no fatal error occured.

Signed-off-by: Patrick Wicki <patrick.wicki@siemens.com>
2026-02-09 19:52:29 +01:00
Jan Rodák
111c652ae9 Merge pull request #27717 from 1AlexBunea/healthcheck-log-docs
Added healthcheck documentation.
2026-02-09 10:08:42 +01:00
Alex Bunea
e61ce8d6ea Added healthcheck documentation.
Fixes: #27202

Signed-off-by: Alex Bunea <1alexbunea@gmail.com>
2026-02-08 10:56:05 -06:00
Jan Rodák
a6a9272430 Merge pull request #27753 from mcgitty/patch-1
docs: Update podman-for-windows.md
2026-02-06 10:09:16 +01:00
Matt Heon
d220d58f08 Merge pull request #27993 from danishprakash/podman-buildah-vendor
vendor: update c/buildah to latest main
2026-02-04 16:02:39 -05:00
Brent Baude
60f9250d24 Merge pull request #28023 from ninja-quokka/update_common_ref
[DOCS] Update references common -> container-libs/common
2026-02-04 08:03:47 -06:00
Lewis Roy
fc18d3229d [DOCS] Update references common -> container-libs/common
Signed-off-by: Lewis Roy <lewisdenny@me.com>
2026-02-04 21:29:17 +10:00
Lewis Roy
22b10abbf3 [DOCS] Fix reference to containers.conf
Signed-off-by: Lewis Roy <lewisdenny@me.com>
2026-02-04 19:43:26 +10:00
Paul Holzinger
8fbda3fbef Merge pull request #27999 from baude/applytransports
add bootc transports to os-apply
2026-02-03 14:53:18 +01:00
Danish Prakash
827ba37b3e build: handle --iidfile-raw and --metadata-file flags
* docs: man page additions
* test/e2e: add tests for `--iidfile-raw` and `--metadata-file`
* test/buildah-bud: update buildah-bud test patch for buildah v1.42.1

Signed-off-by: Danish Prakash <contact@danishpraka.sh>
2026-02-03 09:18:29 +05:30
Alexey Tikhonov
1a5822dc91 rootless_tutorial: mention LDAP support for subid ranges
Signed-off-by: Alexey Tikhonov <atikhono@redhat.com>
2026-02-02 18:14:43 +01:00
Brent Baude
f4138d3599 add bootc transports to os-apply
now that we use `bootc switch` for changing out-of-band updates, we can
consider also using some of their supported transports.

* containers-storage
* oci
* oci-archive
* registry

RUN-3963
Signed-off-by: Brent Baude <bbaude@redhat.com>
2026-02-02 09:07:08 -06:00
Brent Baude
b60d234da4 Merge pull request #27827 from lsm5/podman6-no-cni
Podman6: Remove CNI
2026-01-28 10:20:56 -06:00
Lokesh Mandvekar
721e889476 Update tutorial documentation to remove CNI references
Remove CNI migration instructions and backend selection guidance
from the basic networking tutorial. Simplify DHCP configuration
section to only document netavark setup, removing CNI-specific
instructions.

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2026-01-27 16:32:38 +05:30
Lokesh Mandvekar
7ebb95a3bf Update man page documentation to remove CNI references
Removed all CNI-specific documentation from man pages:

- podman.1.md: Simplified --network-config-dir to only mention
  netavark directories
- podman-network.1.md: Removed dual backend description, now states
  netavark is the only backend
- podman-network-create.1.md: Removed CNI-specific notes about DNS
  and DHCP socket configuration
- podman-network-connect.1.md: Removed CNI limitation note about
  network aliases
- options/network-alias.md: Removed CNI limitation note about
  network aliases
- podman-info.1.md: Updated example output to show netavark backend
  information instead of CNI

All man pages now reflect netavark as the sole network backend.

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2026-01-27 16:32:38 +05:30
Brent Baude
2d67bf3b0a Vendor common test for artifact digest lookup
Vendor latest common with artifact changes

Signed-off-by: Brent Baude <bbaude@redhat.com>
2026-01-26 15:45:56 -06:00
Giuseppe Scrivano
f172ff789b rootless: use nsfs file handles to persist namespaces
use name_to_handle_at and open_by_handle_at to persist rootless
namespaces without needing a pause process.

The namespace file handles are stored in a file and can be used to
rejoin the namespaces, as long as the namespaces still exist.

Fall back to the pause process approach only when the kernel doesn't
support nsfs handles (EOPNOTSUPP).

The feature is currently only enabled when the PODMAN_NO_PAUSE_PROCESS
environment variable is set.

These changes in the kernel are required (landed in Linux 6.18):

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3ab378cfa793

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2026-01-20 18:41:59 +01:00
Brent Baude
aba2df7517 Add podman machine os upgrade command
Implements automatic OS upgrade functionality for Podman machines that requires no user input beyond running the command. The upgrade logic automatically determines the appropriate upgrade path using a three-way comparison between client version, machine version, and OCI registry:

* When the client version is older than the machine version, no action is taken and an error is returned.
* When the client version matches the machine version, the OCI registry is queried to check for in-band updates by comparing image digests.  This handles minor, patch level, and updates oci image use cases.
* When the client version is newer than the machine version, the machine is upgraded to match the client's major.minor version.
* No manual image selection or version specification required.

The command supports dry-run mode and JSON (only) output format for automation.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2026-01-16 14:14:06 -06:00
Miloslav Trmač
dc8d2c13fd Merge pull request #27648 from l0rd/win-tutorial-update
Update the Podman on Windows tutorial
2026-01-16 17:12:43 +01:00
Matt Heon
cb67dafd36 Merge pull request #26445 from aaron-ang/update-ulimit
Add ulimits to `podman update`
2026-01-16 08:38:00 -05:00
Mario Loriedo
87df3e4749 Update the Podman on Windows tutorial for 6.0.x
Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
2026-01-16 11:48:57 +01:00
Bryan Parry
f96e0a3fb2 Fix podman run equivalent for HealthStartPeriod
Signed-off-by: Bryan Parry <bparry@redhat.com>
2026-01-14 15:48:52 -05:00
Ashley Cui
73d6be2876 Merge pull request #27835 from kriansa/fix-timeoutstartsec-docs
docs: fix misleading TimeoutStartSec information for oneshot services
2026-01-14 11:49:03 -05:00
Mario Loriedo
8bd92f52ab Update the Podman on Windows tutorial for 5.7.x
Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
2026-01-13 12:49:33 +01:00
Brent Baude
76e14f79f7 use bootc for os apply
Instead of using rpm-ostree, we now use bootc for os apply.  the
implementation is a little murky right now and will require some cleanup
to implement bootc's transports.  for now, we only support oci images
from registries.

once we have an upgrade command, the transports can be added and the
docs for apply can be ammended to be more clear.

Fixes: RUN-3836

Signed-off-by: Brent Baude <bbaude@redhat.com>
2026-01-08 13:32:39 -06:00
Paul Holzinger
55542db3c5 Merge pull request #27861 from matthijskooijman/patch-1
Fix docs for Volume User= and Group= options
2026-01-05 19:32:49 +01:00
Matthijs Kooijman
7a87456fdd Fix docs for Volume User= and Group= options
These are not options directly passed to `--opt`, but these use `--opt o=`, so update the table accordingly.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>
2026-01-05 17:52:39 +01:00
Michael Chen
309f8c0747 Use non-destructive 'set --rootful' command
Signed-off-by: Michael Chen <4326639+mcgitty@users.noreply.github.com>
2025-12-31 12:08:09 -08:00
Jonatan Kazmierczak
e4bd3e6f20 Update rootless_tutorial.md - minor text correction
Signed-off-by: Jonatan Kazmierczak <Jonatan@Son-of-God.info>
2025-12-29 23:59:24 +01:00
Daniel Pereira
e6c3e4f411 docs: fix misleading TimeoutStartSec information for oneshot services
The documentation incorrectly stated that TimeoutStartSec "cannot be
used" with Type=oneshot services. According to systemd.service(5),
the startup timeout is simply disabled by default (set to infinity)
for oneshot services, but TimeoutStartSec can still be explicitly
configured if a timeout is desired.

Signed-off-by: Daniel Pereira <zdaniel.gp@gmail.com>
2025-12-28 14:15:50 -03:00
Lokesh Mandvekar
38017c42b6 Merge pull request #27811 from ashley-cui/networkcmdpath
Remove network-cmd-path
2025-12-22 09:40:16 -05:00
Ashley Cui
aa1d7b189a Remove network-cmd-path
As part of slirp removal.
RUN-3569

Signed-off-by: Ashley Cui <acui@redhat.com>
2025-12-19 16:52:49 -05:00
MayorFaj
eaf4d4ebc9 fix: remove unnecessary -t flag from podman run commands in documentation
Signed-off-by: MayorFaj <mayorfaj@gmail.com>
2025-12-17 22:29:40 +00:00
Michael Chen
3f49b284f7 Update podman-for-windows.md
Remedy for "ssh: rejected" error commonly seen in corporate PC with reduced permissions.

Signed-off-by: Michael Chen <4326639+mcgitty@users.noreply.github.com>
2025-12-11 11:47:24 -08:00
MayorFaj
4043a4bb0c docs: Update filter options and add podman ps documentation
Signed-off-by: MayorFaj <mayorfaj@gmail.com>
2025-12-06 10:47:13 +00:00
MayorFaj
3b080ce918 docs: Deduplicate --filter descriptions
Signed-off-by: MayorFaj <mayorfaj@gmail.com>
2025-12-05 00:36:53 +00:00
Jan Rodák
4d3c6311a5 Fix unless-stopped restart policy to match Docker behavior
- Update documentation: Differentiate `unless-stopped` from `always` - containers stopped by the user before a reboot will not restart.
- Add `should-start-on-boot` filter: Identify containers that require a restart after a system reboot.
- Update command documentation: Add `restart-policy` and `label!` filters to the documentation for container commands (rm, ps, start, stop, pause, unpause, restart).
- Add `restart-policy` and `shoud-start-on-boot` to completions.
- Update service: Update `podman-restart.service` to use the `needs-restart=true` filter.
- Preserve state: Preserve the `StoppedByUser` state across reboots.
- Update API: Add a `ShouldStartOnBoot()` method to the Container API.
- Update documentation: Add descriptions for the `should-start-on-boot` filter.

Fixes: https://issues.redhat.com/browse/RHEL-129405
Fixes: https://github.com/containers/podman/issues/20418

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2025-12-02 15:40:46 +01:00
Timothée Ravier
129f7ae152 docs/podman.1: Fix leftover rootless mention
Fixes: 75f4215717

Signed-off-by: Timothée Ravier <tim@siosm.fr>
2025-11-27 23:06:46 +01:00
Salim B
7b30d9cd3f docs: further tweaks
Signed-off-by: Salim B <git@salim.space>
2025-11-22 01:17:47 +01:00
Salim B
d1c2afc941 docs: improve note about Quadlet TimeoutStartSec
Signed-off-by: Salim B <git@salim.space>
2025-11-22 00:51:01 +01:00
Aaron Ang
e0fc51eb68 Add ulimits to podman update API
Signed-off-by: Aaron Ang <aaron.angyd@gmail.com>
2025-11-20 22:59:50 -08:00
Mario Loriedo
343a196448 Remove iptables references in docs
Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
2025-11-21 01:10:19 +01:00
Erik Sjölund
7741e047dd podman-systemd.unit.5: document /sbin/nologin accounts
Add command:
sudo systemctl --machine username@ --user list-unit-files

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

Co-authored-by: Tom Sweeney <tsweeney@redhat.com>
Signed-off-by: Erik Sjölund <erik.sjolund@gmail.com>
2025-11-20 21:01:42 +01:00
openshift-merge-bot[bot]
7cd9b81b43 Merge pull request #26727 from ryanmccann1024/feature/26588-exec-no-session
feat(exec): Add --no-session flag for improved performance
2025-11-20 10:28:15 +00:00
Brent Baude
3d566d85cf Ignore prompt if stdin not a tty on machine start
When starting a machine and the user has not explicitly passed
-u=true|false AND stdin is a not a tty, we should not prompt to update
connections.

Fixes: #27556

Signed-off-by: Brent Baude <bbaude@redhat.com>
2025-11-19 11:50:25 -06:00
ryanmccann1024
61cbc0c3ee feat(exec): Add --no-session flag for improved performance
Fixes: #26588

For use cases like HPC, where `podman exec` is called in rapid succession, the standard exec process can become a bottleneck due to container locking and database I/O for session tracking.

This commit introduces a new `--no-session` flag to `podman exec`. When used, this flag invokes a new, lightweight backend implementation that:

- Skips container locking, reducing lock contention
- Bypasses the creation, tracking, and removal of exec sessions in the database
- Executes the command directly and retrieves the exit code without persisting session state
- Maintains consistency with regular exec for container lookup, TTY handling, and environment setup
- Shares implementation with health check execution to avoid code duplication

The implementation addresses all performance bottlenecks while preserving compatibility with existing exec functionality including --latest flag support and proper exit code handling.

Changes include:
- Add --no-session flag to cmd/podman/containers/exec.go
- Implement lightweight execution path in libpod/container_exec.go
- Ensure consistent container validation and environment setup
- Add comprehensive exit code testing including signal handling (exit 137)
- Optimize configuration to skip unnecessary exit command setup

Signed-off-by: Ryan McCann <ryan_mccann@student.uml.edu>
Signed-off-by: ryanmccann1024 <ryan_mccann@student.uml.edu>
2025-11-19 12:44:48 -05:00