Commit Graph

2203 Commits

Author SHA1 Message Date
openshift-merge-bot[bot] 42a01c0f0c
Merge pull request #22967 from rhatdan/build
Remove references to --pull=true and --pull=false
2024-06-21 19:27:36 +00:00
Ygal Blum dca94be028 [CI:DOCS] Quadlet - add note about relative path resolution
Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
2024-06-17 17:32:34 +03:00
openshift-merge-bot[bot] 00bcd9aa81
Merge pull request #22733 from nalind/system-check
Add `podman system check`
2024-06-13 10:35:56 +00:00
Daniel J Walsh 64091777fe
Remove references to --pull=true and --pull=false
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-06-12 18:16:29 +02:00
Brent Baude 5a4416be08 [CI:DOCS] Fix typos in podman-build
Fix two typos in podman build as reported by #22946

FIXES: #22946

Signed-off-by: Brent Baude <bbaude@redhat.com>
2024-06-12 08:03:48 -05:00
openshift-merge-bot[bot] 798beb47ec
Merge pull request #22694 from jmaibaum/quadlet-build
Quadlet: Add support for .build files
2024-06-11 20:41:28 +00:00
Nalin Dahyabhai fec58a4571 Add `podman system check` for checking storage consistency
Add a `podman system check` that performs consistency checks on local
storage, optionally removing damaged items so that they can be
recreated.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2024-06-04 10:00:37 -04:00
Johannes Maibaum 9f823ecb25 Quadlet: Add support for .build files
.build files allow to build an image via Quadlet. The keys from a .build
file are translated to arguments of a `podman build` command by Quadlet.

Minimal keys for .build files are `ImageTag=` and a context directory,
see `SetWorkingDirectory=`, or a `File=` pointing to a Containerfile.

After sorting .build files into the Quadlet dependency order, there
remains a possible dependency cycle issue between .volume and .build
files: A .volume can have `Image=some.build`, and a .build can have
`Volume=some.volume:/some/volume`.

We solve this dependency cycle by prefilling resourceNames with all
image names from .build files before converting all the unit files.

This results in an issue for the test suite though: For .volume's
depending on *.image or *.build, we need to copy these additional
dependencies to the test's quadletDir, otherwise the test will fail.
This is necessary, because `handleImageSource()` actually needs to know
the image name defined in the referenced *.{build,image} file. It cannot
fall back on the default names, as it is done for networks or volumes,
for example.

Signed-off-by: Johannes Maibaum <jmaibaum@gmail.com>
2024-05-27 16:59:39 +02:00
Elliot Ford 9c92bc64a7
fix typo in Tutorials.rst
Signed-off-by: Elliot Ford <elliot.ford@hotmail.co.uk>
2024-05-23 16:15:40 +01:00
openshift-merge-bot[bot] eee0dc256a
Merge pull request #22727 from mheon/chown_all_the_time
Always chown volumes when mounting into a container
2024-05-23 12:34:07 +00:00
Matthew Heon 046c0e5fc2 Only stop chowning volumes once they're not empty
When an empty volume is mounted into a container, Docker will
chown that volume appropriately for use in the container. Podman
does this as well, but there are differences in the details. In
Podman, a chown is presently a one-and-done deal; in Docker, it
will continue so long as the volume remains empty. Mount into a
dozen containers, but never add content, the chown occurs every
time. The chown is also linked to copy-up; it will always occur
when a copy-up occurred, despite the volume now not being empty.
This PR changes our logic to (mostly) match Docker's.

For some reason, the chowning also stops if the volume is chowned
to root at any point. This feels like a Docker bug, but as they
say, bug for bug compatible.

In retrospect, using bools for NeedsChown and NeedsCopyUp was a
mistake. Docker isn't actually tracking this stuff; they're just
doing a copy-up and permissions change unconditionally as long as
the volume is empty. They also have the two linked as one
operation, seemingly, despite happening at very different times
during container init. Replicating that in our stateful system is
nontrivial, hence the need for the new CopiedUp field. Basically,
we never want to chown a volume with contents in it, except if
that data is a result of a copy-up that resulted from mounting
into the current container. Tracking who did the copy-up is the
easiest way to do this.

Fixes #22571

Signed-off-by: Matthew Heon <matthew.heon@pm.me>
2024-05-22 17:47:01 -04:00
jbtrystram ad1d3f8fc7
quadlet: Add a network requirement on .image units
If a container unit starts on boot with a dependency on `default.target`
the image unit may start too soon, before network is ready. This cause
the unit to fail to pull the image.
- Add a dependency on `network-online.target` to make sure image pulls
don't fail.
See https://github.com/containers/podman/issues/21873

- Document the hardcoded dependency on `network-online.target` for images unit
and explain how it can be overriden if necessary.

- tests/e2e/quadlet: Add `assert-last-key-regex`

Required to test the `After=` override in [Unit] section
See https://github.com/containers/podman/pull/22057#issuecomment-2008959993

- quadlet/unitfile: add a prepenUnitLine method

Requirements on networks should be inserted at the top of the
section so the user can override them.

Signed-off-by: jbtrystram <jbtrystram@redhat.com>
2024-05-22 13:46:42 +02:00
openshift-merge-bot[bot] d0ed27118a
Merge pull request #22594 from radar07/default-rootless-network-docs
[CI:DOCS] Update podman network docs
2024-05-21 13:55:56 +00:00
Pranav RK 9a8c3433c1
[CI:DOCS] Update podman network docs
Update the podman network docs to specify that the default rootless
networking tool has been swapped from slirp4netns to pasta.

Signed-off-by: Pranav RK <pranavrk7@gmail.com>
2024-05-17 19:05:31 +05:30
Shion Tanaka fe7cc67ef4 Add Rosetta support for Apple Silicon mac
Signed-off-by: Shion Tanaka <shtanaka@redhat.com>
2024-05-17 17:53:28 +09:00
Jonas Berlin 6d1098f823 Quadlet/Container: Add GroupAdd option
Co-authored-by: Ygal Blum <ygal.blum@gmail.com>
Signed-off-by: Jonas Berlin <xkr47@outerspace.dyndns.org>
2024-05-08 16:00:28 +03:00
Sander Maijers 3c1c6a44ef
Correct option name `ip` -> `ip6`
Also, properly capitalize.

Signed-off-by: Sander Maijers <3374183+sanmai-NL@users.noreply.github.com>
2024-04-25 22:17:06 +02:00
Matt Heon 30e2c923d6 Add the ability to automount images as volumes via play
Effectively, this is an ability to take an image already pulled
to the system, and automatically mount it into one or more
containers defined in Kubernetes YAML accepted by `podman play`.

Requirements:
- The image must already exist in storage.
- The image must have at least 1 volume directive.
- The path given by the volume directive will be mounted from the
  image into the container. For example, an image with a volume
  at `/test/test_dir` will have `/test/test_dir` in the image
  mounted to `/test/test_dir` in the container.
- Multiple images can be specified. If multiple images have a
  volume at a specific path, the last image specified trumps.
- The images are always mounted read-only.
- Images to mount are defined in the annotation
  "io.podman.annotations.kube.image.automount/$ctrname" as a
  semicolon-separated list. They are mounted into a single
  container in the pod, not the whole pod.

As we're using a nonstandard annotation, this is Podman only, any
Kubernetes install will just ignore this.

Underneath, this compiles down to an image volume
(`podman run --mount type=image,...`) with subpaths to specify
what bits we want to mount into the container.

Signed-off-by: Matt Heon <mheon@redhat.com>
2024-04-25 14:12:27 -04:00
Matt Heon 693ae0ebc6 Add support for image volume subpaths
Image volumes (the `--mount type=image,...` kind, not the
`podman volume create --driver image ...` kind - it's strange
that we have two) are needed for our automount scheme, but the
request is that we mount only specific subpaths from the image
into the container. To do that, we need image volume subpath
support. Not that difficult code-wise, mostly just plumbing.

Also, add support to the CLI; not strictly necessary, but it
doesn't hurt anything and will make testing easier.

Signed-off-by: Matt Heon <mheon@redhat.com>
2024-04-25 14:12:27 -04:00
openshift-merge-bot[bot] ac963a7036
Merge pull request #22453 from MHBauer/format-docs-example
[CI:DOCS] format podman-pull example as code
2024-04-22 10:16:48 +00:00
openshift-merge-bot[bot] c2cadfb5c5
Merge pull request #22322 from mheon/update_the_config
Make `podman update` changes persistent
2024-04-22 07:50:48 +00:00
Morgan Bauer 27174ff3fb
[CI:DOCS] format podman-pull example as code
Signed-off-by: Morgan Bauer <bauer.morgan@gmail.com>
2024-04-21 19:46:39 -07:00
Chad Dougherty dc68a47d7a
fix podman-pod-restart.1.md typo
Small typographical error:
"an restarted" -> "and restarted"

Signed-off-by: Chad Dougherty <crd@acm.org>
2024-04-18 19:53:33 -04:00
Daniel J Walsh 422eb0e58a
Add more annnotation information to podman kupe play man page
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-04-18 09:36:44 -04:00
Matt Heon 482ef7bfcf Add support for updating restart policy
This is something Docker does, and we did not do until now. Most
difficult/annoying part was the REST API, where I did not really
want to modify the struct being sent, so I made the new restart
policy parameters query parameters instead.

Testing was also a bit annoying, because testing restart policy
always is.

Signed-off-by: Matt Heon <mheon@redhat.com>
2024-04-17 08:23:51 -04:00
Matt Heon be3f075402 Make `podman update` changes persistent
The logic here is more complex than I would like, largely due to
the behavior of `podman inspect` for running containers. When a
container is running, `podman inspect` will source as much as
possible from the OCI spec used to run that container, to grab
up-to-date information on things like devices. We don't want to
change this, it's definitely the right behavior, but it does make
updating a running container inconvenient: we have to rewrite the
OCI spec as part of the update to make sure that `podman inspect`
will read the correct resource limits.

Also, make update emit events. Docker does it, we should as well.

Signed-off-by: Matt Heon <mheon@redhat.com>
2024-04-17 08:23:50 -04:00
Baltazár Radics d4ecae59bd [CI:DOCS] options/network: fix markdown lists
Markdown needs lists to be separate paragraphs, otherwise all the items
end up in a single line.

I also made arguments to be replaced italic to clarify that they
shouldn't be typed exactly as shown.

Signed-off-by: Baltazár Radics <baltazar.radics@gmail.com>
2024-04-16 10:59:30 +02:00
Paul Holzinger 8de92ec912
docs: fix missleading run/create --expose description
The --expose option doesn't actually affect port forwarding or anything
like that.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-04-10 14:24:32 +02:00
Paul Holzinger 0bedf7f1d2
podman ps: show exposed ports under PORTS as well
Docker shows exposed ports as just PORT/PROTO so match that behavior. It
is not clear to me why someone needs that information in ps as "expose"
doesn't effect anything networking related.

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

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-04-10 14:24:23 +02:00
localhost 36e4d512b3
docs: update Quadlet volume Options desc
Signed-off-by: localhost <xpaomian@gmail.com>
2024-04-09 11:37:20 +08:00
Urvashi Mohnani 71f6f50ee1 [CI:DOCS] Update kube docs
Update kube docs stating the support of moving to and from
k8s in podman and explicitly stating that we are not replicating
the kubectl cli.

Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
2024-04-04 09:28:21 -04:00
WesselAtWork d2143fac59 s3fs docs
Signed-off-by: WesselAtWork <115667066+WesselAtWork@users.noreply.github.com>
2024-04-03 10:18:49 +00:00
Eric D. Helms d3927f9076 Add note about host networking to Kube PublishPort option
Signed-off-by: Eric D. Helms <ericdhelms@gmail.com>
2024-04-02 10:44:45 -04:00
Colin Walters f7b9168649 docs/podman-login: Give an example of writing the persistent path
The way `podman login` works by default is fundamentally different
from `docker login` and this causes a lot of confusion, and I
have seen multiple bad suggestions for ways to address this
such as setting `XDG_RUNTIME_DIR`.

Let's document up front how to write to the persistent path.

Signed-off-by: Colin Walters <walters@verbum.org>
2024-03-28 13:04:47 -04:00
availhang 17aa152459 chore: remove repetitive words
Signed-off-by: availhang <mayangang@outlook.com>
2024-03-22 15:11:29 +08:00
Ed Santiago 1141962e2a xref-helpmsgs-manpages: cross-check Commands.rst
Belated followup to #21981. (Looks like I started to add this
functionality back in 2020 but left it unfinished. Tsk tsk.)

docs/source/Commands.rst is unnecessary duplication. It _should_
be autogenerated, but I can't figure out how to cleanly add
that to our Make process. This PR is an interim cross-check
until we get that resolved:

  - everything in podman --help must have a matching entry
    in Commands.rst (top-level commands only)

  - check for dups and out-of-sequence in Commands.rst
    - also for anything in Commands.rst that is not in --help

Fix existing mismatches in Commands.rst.

Also, #21784 removed a format specifier that I was using in
regression tests. Switch to using something else, to get
test passing again. Given the fact the correct solution
is autogenerating Commands.rst, I choose not to add new
tests for the rst xref.

Also, executive decision, remove volume.rst. It is not referenced
from anywhere, it looks like a lonely orphan remnant from days
of yore.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-03-18 09:09:25 -06:00
Paul Holzinger 068ddfd19f
update API doc version to 5.0.0
Also update the website to display the correct swagger doc for the right
version, the 5.0 swagger file will not exist until we branch but I added
it anyway so we do not forget it.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-03-12 12:06:15 +01:00
Valentin Rothberg 52ed774c23 docs: generate-systemd: add clarification statement
Based on user feedback, I think it's time to clarify that there are no
plans to remove generate-systemd.  Deprecation here means that the
command will not receive new features but only urgent bug fixes.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2024-03-11 09:03:36 +01:00
Valentin Rothberg 3d6758a61d docs: quadlet: improve docs on root/rootless dirs
Make the docs more explicit on which directories are read for root and
rootless users to avoid confusion [1].

[1] https://github.com/containers/podman/discussions/20218#discussioncomment-8721351

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2024-03-11 09:00:43 +01:00
Urvashi Mohnani 6f4ee16d94 [CI:DOCS] Add farm command to commands list
Add the farm command to the commands list so
that it is rendered correctly in readthedocs.

Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
2024-03-07 10:18:52 -05:00
Paul Holzinger 9ee96a9569
properly implement pull-error event status
Commit 03f6589f3 added basic support for pull-error event from libimage
but it contains several problems:
1. storing the error as error type prevents it from being unmarshalled,
   thus change it to a string
2. the error was never propagated from the libimage event to the podman
   event struct
3. the error message was not wired into the cli and API

This commit fixes these problems.

Fixes #21458

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-03-05 10:50:42 +01:00
openshift-merge-bot[bot] 87729cc666
Merge pull request #21862 from ashley-cui/ocidisk
Use machine image as specified in containers.conf
2024-02-29 20:51:23 +00:00
Ashley Cui 527b3793b8 Use machine image as specified in containers.conf
For podman machine init, deprecate the --image-path option for --image.
--image now accepts the correct image from containers.conf

Also, add the ability to specify an OCI image from the --image flag using the docker:// transport.

Signed-off-by: Ashley Cui <acui@redhat.com>
2024-02-29 13:38:43 -05:00
Daniel J Walsh 2bbed8f200 Add man page content for artifacts
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-29 11:47:44 -05:00
Daniel J Walsh 66d60384f4
add --retry --retry-delay to podman run/create
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-29 10:20:21 -05:00
Daniel J Walsh c3c0c4ab96
Add support for podman push --retry --retry-delay
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-29 10:20:21 -05:00
openshift-merge-bot[bot] 690b671ecd
Merge pull request #20774 from giuseppe/passthrough-tty
logging: new mode -l passthrough-tty
2024-02-29 12:43:36 +00:00
Giuseppe Scrivano 950f612b56
logging: new mode -l passthrough-tty
it works in a similar way to passthrough but it allows to be used also
on a TTY.

conmon support: https://github.com/containers/conmon/pull/465

Closes: https://github.com/containers/podman/issues/20767

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-02-28 17:23:59 +01:00
Paul Holzinger 5952486df8
podman network inspect: include running containers
Like docker podman network inspect should output the information of
running container with their ip/mac address on this network.
However the output format is not docker compatible as this cannot
include all the info we have and the previous output was already not
compatible so this is not new.

New example output:
```
[
     {
          ...
          "containers": {
               "7c0d295779cee4a6db7adc07a99e635909413a390eeab9f951edbc4aac406bf1": {
                    "name": "c2",
                    "interfaces": {
                         "eth0": {
                              "subnets": [
                                   {
                                        "ipnet": "10.89.0.4/24",
                                        "gateway": "10.89.0.1"
                                   },
                                   {
                                        "ipnet": "fda3:b4da:da1e:7e9d::4/64",
                                        "gateway": "fda3:b4da:da1e:7e9d::1"
                                   }
                              ],
                              "mac_address": "1a:bd:ca:ea:4b:3a"
                         }
                    }
               },
               "b17c6651ae6d9cc7d5825968e01d6b1e67f44460bb0c140bcc32bd9d436ac11d": {
                    "name": "c1",
                    "interfaces": {
                         "eth0": {
                              "subnets": [
                                   {
                                        "ipnet": "10.89.0.3/24",
                                        "gateway": "10.89.0.1"
                                   },
                                   {
                                        "ipnet": "fda3:b4da:da1e:7e9d::3/64",
                                        "gateway": "fda3:b4da:da1e:7e9d::1"
                                   }
                              ],
                              "mac_address": "f6:50:e6:22:d9:55"
                         }
                    }
               }
          }
     }
]
```

Fixes #14126
Fixes https://issues.redhat.com/browse/RHEL-3153

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-28 16:33:26 +01:00
Brett Calliss 3b127286a7 Adds example for secret creation from environment variable
Signed-off-by: Brett Calliss <brett@obligatory.email>
2024-02-24 19:00:54 +11:00
openshift-merge-bot[bot] 36d8e27601
Merge pull request #21517 from jakecorrenti/fix-qemu-todos
machine: Address some QEMU TODOs
2024-02-22 21:21:50 +00:00
Jake Correnti be9aba7ccd Remove image provenance from `machine inspect`
We don't care about the provenance of the machine image, so this is no
longer applicable to have when displaying info.

Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
2024-02-22 08:34:27 -05:00
Paul Holzinger 8f1cebf96f
cmd/podman: remove duplicated event ToHumanReadable()
ToHumanReadable() exists twice now, there is no reason for this just
call the function on the backend event type is fine as this still has to
be used there.

It also fixes a bug where the wrong event type was passed to the
template which did not match the docs and json output.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-22 12:10:57 +01:00
AhmedGrati a3a1b44c31
libpod/events: Update event time format and add timeNano
Add new event type in cmd/podman to better match the docker format.

Signed-off-by: AhmedGrati <ahmedgrati1999@gmail.com>
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-22 11:32:48 +01:00
openshift-merge-bot[bot] 59b6f48d90
Merge pull request #21735 from jakecorrenti/inspect-conn-vals
machine: Add `ConnectionInfo` to inspect
2024-02-22 02:36:50 +00:00
openshift-merge-bot[bot] 70091d57e7
Merge pull request #21699 from vikas-goel/i21663
Comply to Kubernetes specifications for annotation size.
2024-02-21 15:00:25 +00:00
Vikas Goel 89b415ba37 Comply to Kubernetes specifications for annotation size.
An annotation is a pair of key-value. The key has two parts, viz. a name and an optional prefix in DNS format.

The limitations on name is 63, prefix 253 chars. The limitation on total size of all key+value pairs combined is 256KB.

https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/#syntax-and-character-set

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

Signed-off-by: Vikas Goel <vikas.goel@gmail.com>
2024-02-20 14:58:35 -08:00
openshift-merge-bot[bot] c4b793f58c
Merge pull request #21726 from rhatdan/docs7
[CI:DOCS] Fix up example description of podman-system commands
2024-02-20 14:41:11 +00:00
openshift-merge-bot[bot] 152978b336
Merge pull request #21710 from rhatdan/docs21
[CI:DOCS] Fix up example description of podman-inspect.1.md.in
2024-02-20 14:38:33 +00:00
Jake Correnti 09095acf2b machine: Add `ConnectionInfo` to `MachineConfig`
Adds `ConnectionInfo()` to the `MachineConfig` and fills out
`InspectInfo` accordingly. Additionally fixes the "inspect with go format" test.

Changes `ConfigPath` to `ConfigDir` to better represent the
output.

Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
2024-02-20 09:08:11 -05:00
openshift-merge-bot[bot] 9f1a9b1105
Merge pull request #21713 from rhatdan/docs18
[CI:DOCS] Fix up example description of podman-images.1.md.in
2024-02-20 13:26:57 +00:00
openshift-merge-bot[bot] 54351306d0
Merge pull request #21708 from rhatdan/docs25
[CI:DOCS] Fix up example description of podman-push.1.md.in
2024-02-20 13:24:08 +00:00
openshift-merge-bot[bot] a6cce6ac01
Merge pull request #21705 from rhatdan/docs28
[CI:DOCS] Fix up example description of podman-stats.1.md.in
2024-02-20 13:21:23 +00:00
Daniel J Walsh 5effdcca3c
Fix up example description of podman-system commands
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-20 08:18:51 -05:00
openshift-merge-bot[bot] 921b5bb0b1
Merge pull request #21709 from rhatdan/docs24
[CI:DOCS] Fix up example description of podman-port.1.md.in
2024-02-20 11:17:38 +00:00
openshift-merge-bot[bot] 34aa4cece8
Merge pull request #21718 from rhatdan/docs17
[CI:DOCS] Fix up example description of podman-history.1.md
2024-02-20 11:09:22 +00:00
openshift-merge-bot[bot] a57c7dcd66
Merge pull request #21727 from rhatdan/docs8
[CI:DOCS] Fix up example description of podman-container commands
2024-02-20 11:03:53 +00:00
openshift-merge-bot[bot] 2009549f07
Merge pull request #21723 from rhatdan/docs10
[CI:DOCS] Fix up example description of podman-commit.1.md
2024-02-20 11:01:06 +00:00
openshift-merge-bot[bot] 159afc5193
Merge pull request #21722 from rhatdan/docs9
[CI:DOCS] Fix up example description of podman-build.1.md.in
2024-02-20 10:58:21 +00:00
openshift-merge-bot[bot] 5c4027e15b
Merge pull request #21719 from rhatdan/docs12
[CI:DOCS] Fix up example description of podman-create.1.md.in
2024-02-20 10:55:44 +00:00
Daniel J Walsh c5a71c4fdc
Apply suggestions from code review
Co-authored-by: Tom Sweeney <tsweeney@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-20 05:49:04 -05:00
Daniel J Walsh 67ead5cb5d
Apply suggestions from code review
Co-authored-by: Valentin Rothberg <vrothberg@redhat.com>
Co-authored-by: Tom Sweeney <tsweeney@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-20 05:48:04 -05:00
Daniel J Walsh 408772d34a
Apply suggestions from code review
Co-authored-by: Tom Sweeney <tsweeney@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-20 05:46:41 -05:00
Daniel J Walsh 1612ff69c0
Fix up example description of podman-inspect.1.md.in
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-20 05:45:41 -05:00
openshift-merge-bot[bot] 81b9914ede
Merge pull request #21721 from rhatdan/docs14
[CI:DOCS] Fix up example description of podman-events.1.md
2024-02-20 10:44:39 +00:00
openshift-merge-bot[bot] da73d98da9
Merge pull request #21720 from rhatdan/docs13
[CI:DOCS] Fix up example description of podman-diff.1.md.in
2024-02-20 10:41:51 +00:00
Daniel J Walsh 62148bf615
Apply suggestions from code review
Co-authored-by: Tom Sweeney <tsweeney@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-20 05:39:27 -05:00
Daniel J Walsh b8c1a8e79d
Apply suggestions from code review
Co-authored-by: Tom Sweeney <tsweeney@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-20 05:38:19 -05:00
openshift-merge-bot[bot] 07613dd84a
Merge pull request #21724 from rhatdan/docs11
[CI:DOCS] Fix up example description of podman-cp.1.md
2024-02-19 21:10:17 +00:00
openshift-merge-bot[bot] f63953de61
Merge pull request #21714 from rhatdan/docs19
[CI:DOCS] Fix up example description of podman-export/export commands
2024-02-19 21:07:30 +00:00
openshift-merge-bot[bot] f063f96df2
Merge pull request #21711 from rhatdan/docs22
[CI:DOCS] Fix up example description of podman-kill.1.md.in
2024-02-19 21:04:45 +00:00
Daniel J Walsh 5b5343b38e
Apply suggestions from code review
Co-authored-by: Tom Sweeney <tsweeney@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-19 15:53:03 -05:00
Daniel J Walsh 9d73dc6ed0
Apply suggestions from code review
Co-authored-by: Tom Sweeney <tsweeney@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-19 15:40:09 -05:00
Daniel J Walsh f7659b12e4
Apply suggestions from code review
Co-authored-by: Tom Sweeney <tsweeney@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-19 15:26:08 -05:00
Daniel J Walsh fc71401516
Fix up example description of podman-mount.1.md.in
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-19 15:22:23 -05:00
Daniel J Walsh ee078a7e62
Update docs/source/markdown/podman-cp.1.md
Co-authored-by: Tom Sweeney <tsweeney@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-19 15:19:40 -05:00
Daniel J Walsh 606865a47e
Fix up example description of podman-container commands
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-19 15:18:51 -05:00
Daniel J Walsh 22effe8d40
Fix up example description of podman-stats.1.md.in
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-19 15:01:47 -05:00
openshift-merge-bot[bot] 25a96d7a44
Merge pull request #21731 from rhatdan/docs2
[CI:DOCS] Fix up example description of podman-pod commands
2024-02-19 20:01:31 +00:00
openshift-merge-bot[bot] 322bc5eaa5
Merge pull request #21728 from rhatdan/docs3
[CI:DOCS] Fix up example description of podman-volume commands
2024-02-19 19:58:44 +00:00
openshift-merge-bot[bot] 41b2c31dae
Merge pull request #21712 from rhatdan/docs23
[CI:DOCS] Fix up example description of podman-logout.1.md.in
2024-02-19 19:17:30 +00:00
Daniel J Walsh a0109caa7d
Fix up example description of podman-volume commands
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-19 10:09:06 -05:00
Daniel J Walsh 803410f1a1
Fix up example description of podman-kill.1.md.in
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-19 10:06:05 -05:00
Daniel J Walsh bc5a4fbb23
Fix up example description of podman-pod commands
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-19 10:03:30 -05:00
Daniel J Walsh 8ed6d4fe58
Fix up example description of podman-build.1.md.in
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-19 08:58:17 -05:00
Daniel J Walsh 433efc1f5c
Fix up example description of podman-commit.1.md
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-19 08:53:38 -05:00
openshift-merge-bot[bot] 2c45047957
Merge pull request #21730 from rhatdan/docs5
[CI:DOCS] Fix up example description of podman-manifest commands
2024-02-19 13:26:22 +00:00
openshift-merge-bot[bot] e4229f0abc
Merge pull request #21729 from rhatdan/docs4
[CI:DOCS] Fix up example description of podman-network commands
2024-02-19 13:23:36 +00:00
openshift-merge-bot[bot] c22cbb953a
Merge pull request #21725 from rhatdan/docs6
[CI:DOCS] Fix up example description of podman-farm commands
2024-02-19 11:40:16 +00:00
openshift-merge-bot[bot] 80b1e95700
Merge pull request #21659 from rhatdan/retry
Allow podman pull to specify --retry and --retry-delay
2024-02-19 11:37:31 +00:00
openshift-merge-bot[bot] 6abf785cf5
Merge pull request #21702 from rhatdan/docs31
[CI:DOCS] Fix up example description of podman-unshare.1.md
2024-02-19 11:34:45 +00:00
openshift-merge-bot[bot] 6c77b6d498
Merge pull request #21717 from rhatdan/docs16
[CI:DOCS] Fix up example description of podman-healthcheck-run.1.md
2024-02-19 09:12:51 +00:00
openshift-merge-bot[bot] e20fbaffc9
Merge pull request #21707 from rhatdan/docs26
[CI:DOCS] Fix up example description of podman-rm.1.md.in
2024-02-19 09:10:07 +00:00
openshift-merge-bot[bot] 89926c8af9
Merge pull request #21732 from rhatdan/docs1
[CI:DOCS] Fix up example description of podman-image commands
2024-02-19 09:07:22 +00:00
openshift-merge-bot[bot] 7b6f22e358
Merge pull request #21703 from rhatdan/docs30
[CI:DOCS] Fix up example description of podman-pause.1.md.in
2024-02-19 09:04:40 +00:00
Daniel J Walsh fe910ae96d
Fix up example description of podman-logout.1.md.in
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-18 19:10:40 -05:00
Daniel J Walsh 12af4f36b7
Fix up example description of podman-images.1.md.in
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-18 18:19:18 -05:00
openshift-merge-bot[bot] 7dd8fc50b9
Merge pull request #21684 from baude/machinereset
Introduce Podman machine reset
2024-02-18 17:46:06 +00:00
openshift-merge-bot[bot] e191f03938
Merge pull request #21706 from rhatdan/docs27
[CI:DOCS]  Fix up example description of podman-start.1.md.in
2024-02-18 17:43:20 +00:00
Daniel J Walsh 66ed469879
Apply suggestions from code review
Co-authored-by: Valentin Rothberg <vrothberg@redhat.com>
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-18 12:42:07 -05:00
openshift-merge-bot[bot] 4c18bfa21b
Merge pull request #21716 from rhatdan/docs15
[CI:DOCS] Fix up example description of podman-exec.1.md.in
2024-02-18 17:26:49 +00:00
Daniel J Walsh de7cb639c4
Fix up example description of podman-export/export commands
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-18 12:26:33 -05:00
Brent Baude 10d748f584 Introduce Podman machine reset
Podman machine reset is a new command that will "reset" your podman
machine environment.  Reset is defined as:

* Stop and Remove all VMs
* Remove the following directories:
    - configuration dir i.e. ~/.config/containers/podman/machine/qemu
    - data dir i.e. ~/.local/.share/containers/podman/machine/qemu

When deleting, if errors are encountered, they will be batched and spit
out at the end.  Podman will try to proceed even in error in doing what
it was told.

Signed-off-by: Brent Baude <bbaude@redhat.com>
2024-02-18 08:43:12 -06:00
Daniel J Walsh d4b3ab521d
Fix up example description of podman-create.1.md.in
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-18 08:11:39 -05:00
Daniel J Walsh 717c005698
Fix up example description of podman-diff.1.md.in
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-18 08:09:53 -05:00
Daniel J Walsh 4e268c667a
Fix up example description of podman-events.1.md
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-18 08:07:13 -05:00
Daniel J Walsh 537490cb9c
Fix up example description of podman-farm commands
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-18 08:02:29 -05:00
Daniel J Walsh aad195ca38
Fix up example description of podman-network commands
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-18 07:48:08 -05:00
Daniel J Walsh 777b258a7a
Fix up example description of podman-image commands
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-18 07:41:47 -05:00
Daniel J Walsh 664d4ed28c
Fix up example description of podman-port.1.md.in
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-17 14:41:00 -05:00
Daniel J Walsh 1116e68ddb
Fix up example description of podman-push.1.md.in
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-17 14:38:28 -05:00
Daniel J Walsh 79a10419c0
Fix up example description of podman-unshare.1.md
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-17 13:54:29 -05:00
Daniel J Walsh 63d9bf1280
Fix up example description of podman-pause.1.md.in
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-17 13:54:28 -05:00
Daniel J Walsh 4b6ca1687a
Fix up example description of podman-start.1.md.in
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-17 13:54:25 -05:00
Daniel J Walsh f5c666d070
Fix up example description of podman-rm.1.md.in
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-17 13:54:24 -05:00
Daniel J Walsh 6c8123325a
Fix up example description of podman-info.1.md
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-17 13:54:19 -05:00
Daniel J Walsh 8cbbd631d3
Fix up example description of podman-history.1.md
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-17 13:54:16 -05:00
Daniel J Walsh 1a06ec802c
Fix up example description of podman-healthcheck-run.1.md
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-17 13:54:15 -05:00
Daniel J Walsh 10af448548
Fix up example description of podman-exec.1.md.in
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-17 13:54:14 -05:00
Daniel J Walsh 7e611f60b3
Fix up example description of podman-cp.1.md
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-17 13:54:10 -05:00
Daniel J Walsh 47d0aa1bc1
Fix up example description of podman-manifest commands
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-17 13:54:04 -05:00
Daniel J Walsh 7ba23cd6fc
Allow podman pull to specify --retry and --retry-delay
Fixes: https://github.com/containers/podman/issues/19770

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-17 07:37:26 -05:00
Ed Santiago c7537d1939 man-page xref: make nested-structure warnings fatal
Followup to:
  - #21060, where I added new struct checks (but did not make them fatal)

  - #21534, which added per-interface stats and a .Network field,
    but its documentation was slightly off

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-02-15 13:22:31 -07:00
Vikas Goel 42a78c714c Add volumes-from support using annotation in kube yaml
The reserved annotation io.podman.annotations.volumes-from is made public to let user define volumes-from to have one container mount volumes of other containers.

The annotation format is: io.podman.annotations.volumes-from/tgtCtr: "srcCtr1:mntOpts1;srcCtr2:mntOpts;..."

Fixes: containers#16819

Signed-off-by: Vikas Goel <vikas.goel@gmail.com>
2024-02-14 07:31:43 -08:00
openshift-merge-bot[bot] 0aa04ed8c4
Merge pull request #21612 from giuseppe/clarify-git-url
docs: clarify when a URL is treated as a git repo
2024-02-12 21:33:11 +00:00
openshift-merge-bot[bot] 9b7568619b
Merge pull request #21533 from Luap99/podman-connections-doc
document new connection/farm storage location
2024-02-12 13:46:52 +00:00
Giuseppe Scrivano 1f8a69bc9e
docs: clarify when a URL is treated as a git repo
Closes: https://github.com/containers/podman/issues/21605

[CI:DOCS] clarify podman build git repo handling

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-02-12 11:10:33 +01:00
Lokesh Mandvekar a2c086c789
[CI:DOCS] fix userns.pod.md mapping table
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2024-02-09 15:53:34 +05:30
localhost 3495aae42b docs: resole hierarchical issues with userns parameters
Signed-off-by: paomian <xpaomian@gmail.com>
2024-02-09 14:45:05 +08:00
openshift-merge-bot[bot] 9011327e84
Merge pull request #21568 from joelpurra/patch-1
[CI:DOCS] Fix Quadlet Options=key=value documentation/example
2024-02-08 19:51:52 +00:00
openshift-merge-bot[bot] 88b994902d
Merge pull request #21512 from Luap99/pasta-netname-removal
drop support for "pasta" as a network name
2024-02-08 17:17:55 +00:00
Paul Holzinger dc0d07c71f
document new connection/farm storage location
The new file was not really documented, so leave some pointers on how it
works and that the new file should not be edited manually.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-08 18:05:32 +01:00
Joel Purra 10265661ec
Fix Quadlet Options=key=value documentation/example
Quadlet `[Network]` does not accept `Options=key` for `podman network create --opt key`. Options have to be provided in `key=value` format, where the `=` is required even though the value may be empty.

One usage example is `Options=isolate=true`. In this case, passing `netavark` an empty `isolate` value may be a valid/parseable setting: `Options=isolate=`, equivalent to `Options=isolate=false`.

This commit documents the explicit `Options=key=value` usage. Compare to `[Network]` tests, which use `key=value`.

Usage verified locally by inspecting the generated network in `/run/user/${UID}/systemd/generator/example-network.service` and `podman network inspect systemd-example` using podman v4.9.2 and netavark v1.10.2.

See

- https://docs.podman.io/en/latest/markdown/podman-systemd.unit.5.html#network-units-network
- https://github.com/containers/podman/blob/v4.9.2/test/e2e/quadlet/options.network
- https://github.com/containers/podman/blob/v4.9.2/test/e2e/quadlet/options.multiple.network
- https://github.com/containers/netavark/blob/v1.10.2/src/network/bridge.rs#L824-L833

Signed-off-by: Joel Purra <mig@joelpurra.se>
2024-02-08 17:48:36 +01:00
openshift-merge-bot[bot] 4fc52ed068
Merge pull request #21534 from mheon/stats_per_interface
Send container stats over API on a per-interface basis
2024-02-08 14:19:08 +00:00
openshift-merge-bot[bot] 4c9bd246c3
Merge pull request #21514 from Luap99/pod-inspect-output
make podman pod inspect output a json array
2024-02-08 11:31:40 +00:00
Giuseppe Scrivano 77847bd67a
docs: make --seccomp=profile.json clearer
There are not only allowed syscalls, also blocked ones or handled
differently.

[CI:DOCS]

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-02-07 13:16:35 +01:00
Matt Heon 6e0decbe03 Send container stats over API on a per-interface basis
This mirrors how the Docker API handles things, allowing us to be
more compatible with Docker and more verbose on the Libpod API.
Stats are given as per network interface in the container, but
still aggregated for `podman stats` and `podman pod stats`
display (so the CLI does not change, only the Libpod and Compat
APIs).

Signed-off-by: Matt Heon <mheon@redhat.com>
2024-02-06 17:05:07 -05:00
Piratey7007 2eee3cd812 Corrected markdown documentation for `--stars`
The `--stars` option was incorrectly documented as meaning
the number of stars to filter by. This has been corrected
to indicate that it is the minimum number of stars to filter
by.

Tweaked wording of podman-search.md stars filter text

Signed-off-by: Kaniel Kirby <piratey7007@runbox.com>
2024-02-05 11:37:01 -06:00
Paul Holzinger 35d1f12213
make podman pod inspect output a json array
Just like all the other inspect commands that accept multiple args we
should just make podman pod inspect output a json array.
This makes the code more consistent and removes the extra workaround
which was needed before to support this.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-05 17:26:55 +01:00
Paul Holzinger 249474a84e
drop support for "pasta" as a network name
The pasta network mode has been added in podman v4.4 and this causes a
conflict with named networks that could also be called "pasta". To not
break anything we had special logic to prefer the named network over the
network mode. Now with 5.0 we can break this and remove this awkward
special handling from the code.

Containers created with 4.X that use a named network pasta will also
continue to work fine, this chnage will only effect the creation of new
containers with a named network pasta and instead always used the
network mode pasta. We now also block the creation of networks with the
name "pasta".

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-05 13:57:24 +01:00