20575 Commits

Author SHA1 Message Date
d18369ee88 Check for image with /libpod/containers/create
The libpod containers create endpoint wasn't checking whether
the image existed before creating the container. If the image
doesn't exist, it should return a 404 status code but it was
failing and returning a 500 status code.
This fix matches the behavior of the compat endpoint.

Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
2023-10-09 13:07:24 -04:00
8ac2aa7938 container: always check if mountpoint is mounted
when running as a service, the c.state.Mounted flag could get out of
sync if the container is cleaned up through the cleanup process.

To avoid this, always check if the mountpoint is really present before
skipping the mount.

[NO NEW TESTS NEEDED]

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

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-10-09 17:20:22 +02:00
d90fdfc639 Merge pull request #20311 from containers/renovate/github.com-onsi-ginkgo-v2-2.x
fix(deps): update module github.com/onsi/ginkgo/v2 to v2.13.0
2023-10-09 14:54:01 +00:00
787b1b25c7 fix(deps): update module github.com/onsi/ginkgo/v2 to v2.13.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-09 13:26:51 +00:00
b2c5418fb7 Merge pull request #20288 from albnnc/fix/do-not-ignore-external-containerfiles
fix: don't ignore containerfiles outside of build context
2023-10-09 13:25:29 +00:00
9beb3a9720 vendor: update c/storage
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-10-09 13:31:55 +02:00
0dba5acd85 Merge pull request #20308 from giuseppe/drop-debug-msg
api: drop debug statement
2023-10-09 11:05:46 +00:00
6e7e87503c Merge pull request #20253 from ygalblum/quadlet-command-args
Quadlet - add support for global arguments
2023-10-09 09:01:36 +00:00
36bf905181 api: drop debug statement
remove what seems to be a debugging artifact.

[NO NEW TESTS NEEDED]

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-10-09 10:27:39 +02:00
d321d427dc Quadlet - add support for global arguments
Add support for adding podman level arguments before subcommand
Add specific key for Containers Conf Modules
Global arguments are added for both start and stop commands
Adjust testing environment
Add tests
Add to man page

Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
2023-10-08 10:14:06 +03:00
e9d6ffa8f0 Merge pull request #20252 from vrothberg/privileged
containers.conf: add `privileged` field to containers table
2023-10-07 11:34:45 +00:00
b7f708a942 Merge pull request #20290 from containers/renovate/golang.org-x-tools-0.x
fix(deps): update module golang.org/x/tools to v0.14.0
2023-10-07 11:29:36 +00:00
745cfb57dc Merge pull request #20283 from containers/renovate/github.com-containers-libhvee-digest
fix(deps): update github.com/containers/libhvee digest to fcf1cc2
2023-10-07 11:27:02 +00:00
732cec794e Add system test
Signed-off-by: Aleksei Kosyrev <albnnc@gmail.com>
2023-10-07 10:55:51 +03:00
10aa390684 fix(deps): update module golang.org/x/tools to v0.14.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-06 14:03:02 +00:00
3fdb6ee2df Don't ignore containerfiles outside of build context
[NO NEW TESTS NEEDED]

Signed-off-by: Aleksei Kosyrev <albnnc@gmail.com>
2023-10-06 16:00:13 +03:00
b3209dc5d6 fix(deps): update github.com/containers/libhvee digest to fcf1cc2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-06 11:08:10 +00:00
f4348bab66 Merge pull request #20279 from containers/renovate/golang.org-x-term-0.x
fix(deps): update module golang.org/x/term to v0.13.0
2023-10-06 11:04:52 +00:00
eda2758206 fix(deps): update module golang.org/x/term to v0.13.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-06 07:29:25 +00:00
d36c90868f Merge pull request #20277 from containers/renovate/golang.org-x-sys-0.x
Update module golang.org/x/sys to v0.13.0
2023-10-06 07:27:33 +00:00
b8084274cd Merge pull request #20273 from giuseppe/bump-storage
vendor: bump c/storage
2023-10-06 06:26:03 +00:00
a7390a4083 Merge pull request #20276 from ashley-cui/rel
[CI:DOCS] Add updating version on podman.io to release process
2023-10-05 21:23:22 +00:00
da6c86dfcb Update module golang.org/x/sys to v0.13.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-05 21:21:40 +00:00
1c07800971 [CI:DOCS] Add updating version on podman.io to release process
Signed-off-by: Ashley Cui <acui@redhat.com>
2023-10-05 14:48:04 -04:00
362eca6691 containers.conf: add privileged field to containers table
As requested in containers/podman/issues/20000, add a `privileged` field
to the containers table in containers.conf.  I was hesitant to add such
a field at first (for security reasons) but I understand that such a
field can come in handy when using modules - certain workloads require a
privileged container.

Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
2023-10-05 20:14:18 +02:00
ecef03d81c Merge pull request #20271 from containers/renovate/golang.org-x-sync-0.x
Update module golang.org/x/sync to v0.4.0
2023-10-05 15:11:14 +00:00
106abd13be Cirrus: Execute Windows podman-machine e2e tests
Also, de-duplicate power-shell variables and functions as they're
beginning to sprawl.  This does not completely address all duplicates,
mainly those involved in the podman-machine CI workflow.  So,
nothing under `contrib/win-installer` has been touched.

[NO NEW TESTS NEEDED]

Signed-off-by: Chris Evich <cevich@redhat.com>
2023-10-05 10:45:17 -04:00
338e4f5901 vendor: bump c/storage
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-10-05 15:31:49 +02:00
8807243cc8 Update module golang.org/x/sync to v0.4.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-05 12:39:37 +00:00
158b11a10d Merge pull request #20245 from jakecorrenti/qemu-wrapper
Create Qemu command wrapper
2023-10-05 12:38:30 +00:00
b144b17f7e Merge pull request #20268 from Luap99/api-doc
[CI:DOCS] update swagger version on docs.podman.io
2023-10-05 10:11:53 +00:00
2168f07450 [CI:DOCS] update swagger version on docs.podman.io
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-10-05 10:45:22 +02:00
516a03a6f2 Merge pull request #20266 from n1hility/fix-resolved-disable
Adjust to path name change for resolved unit on WSL backend
2023-10-05 08:21:30 +00:00
458e562465 Merge pull request #20265 from n1hility/revert-systemd-change
Revert "Fix WSL systemd detection"
2023-10-05 08:19:17 +00:00
0414f88b3a Create Qemu command wrapper
Creates a wrapper around the Qemu command line implementation to prevent
the need to hard-code the different command line options in Init and
Start.

Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
2023-10-04 23:17:15 -04:00
7dc5f7b499 Merge pull request #20263 from umohnani8/play-doc
[CI:DOCS] update kube play delete endpoint docs
2023-10-05 01:47:12 +00:00
e467849712 Merge pull request #20262 from lsm5/gvisor-rhel
[CI:BUILD] rpm/copr: gvforwarder recommends for RHEL
2023-10-05 01:44:37 +00:00
4a67d22765 Merge pull request #20256 from Luap99/revert-env
Revert --env-file changes
2023-10-05 01:41:59 +00:00
df6a000263 Adjust to path name change for resolved unit
Leave the legacy name around for now

[NO NEW TESTS NEEDED]

Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
2023-10-04 17:12:03 -05:00
2a38f30b6c Revert "Fix WSL systemd detection"
This reverts commit 5b990c3835ac167cc7f5b51fae3f719edf031965.
PR #19994

Causes wsl nsenter script to infinitely loop in standard operation

[NO NEW TESTS NEEDED]

Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
2023-10-04 16:25:47 -05:00
f622a2a54b [CI:BUILD] rpm/copr: gvforwarder recommends for RHEL
We don't have a successful rhel build of gvforwarder so far on the
podman-next copr, so any RHEL users of podman-next will have trouble
installing podman if it's a gvforwarder is a hard dep.

Switching gvforwarder to a Recommends until that's resolved.

The ELN environment is an exception as it gets dependencies updated a
lot quicker.

[NO NEW TESTS NEEDED]

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2023-10-04 15:29:37 -04:00
27f58803de [CI:DOCS] update kube play delete endpoint docs
Update the docs for the DELETE libpod/kube/play endpoint
to mention the resources removed when ran.

Signed-off-by: Urvashi Mohnani <umohnani@redhat.com>
2023-10-04 14:51:14 -04:00
46ca057f6b Merge pull request #20250 from Luap99/inspect-device
inspect: ignore ENOENT during device lookup
2023-10-04 18:45:52 +00:00
6d3cea3ced Merge pull request #20261 from cgiradkar/Issue-168-podman.io
[CI:DOCS] Remove dead link from README
2023-10-04 18:40:35 +00:00
3b39d4b082 Merge pull request #20132 from cgiradkar/Issue-17856
Change log level for health_check
2023-10-04 17:59:32 +00:00
3fc7c42e18 [CI:DOCS] Remove dead link from README
The link for podman-hello.png was replaced with a textual representation but a dangling pointer to dead link was still present. This PR removes the dead link to avoid hitting 404.

Signed-off-by: Chetan Giradkar <cgiradka@redhat.com>
2023-10-04 18:51:11 +01:00
1b3cedbf31 test/system: --env-file test fixes
Now that the newline env file change is reverted we have to adapt the
tests.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-10-04 18:18:18 +02:00
617af9bea9 Revert "feat(env): support multiline in env-file"
This reverts commit 170a78631b4b0a0e5963e860cc3c3b297b4a7d09.

This was a breaking change and users are hitting it,
see https://github.com/containers/podman/issues/19565

Fixes #19565

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-10-04 17:06:21 +02:00
5f340487ee Revert "docs(env-file): improve document description"
This reverts commit c67ef7c1a12bb46e846c1b3dbda6acda1c6a5d30.

see https://github.com/containers/podman/issues/19565

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-10-04 17:06:21 +02:00
9599589f18 Revert "fix(env): parsing --env incorrect in cli"
This reverts commit 7ce654fea39195fae9f7f8d2cb1112b731e67fc3.

see https://github.com/containers/podman/issues/19565

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2023-10-04 17:06:05 +02:00