21805 Commits

Author SHA1 Message Date
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
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
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
36dd18d42b Merge pull request #21715 from rhatdan/docs20
[CI:DOCS] Fix up example description of podman-info.1.md
2024-02-18 17:24:16 +00:00
f59a5f1351 Fix running container from docker client with rootful in rootless podman.
This effectively fix errors like "unable to upgrade to tcp, received
409" like #19930 in the special case where podman itself is running
rootful but inside a container which itself is rootless.

[NO NEW TESTS NEEDED]

Signed-off-by: Romain Geissler <romain.geissler@amadeus.com>
2024-02-18 15:09:14 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
fbb4d5dca6 Merge pull request #21692 from Luap99/machine-cleanup
machine init: validate machine name and username
2024-02-17 12:33:23 +00:00
3b3423230c Merge pull request #21666 from n1hility/reenable-wsl-tests
Reenable wsl tests
2024-02-17 12:27:52 +00:00
335750d99b Merge pull request #21689 from mheon/bump_500_rc2
Bump to v5.0.0-RC2
2024-02-16 16:42:58 +00:00
f036476cfa fix usermode test
Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
2024-02-16 09:17:29 -06:00
24b8d1446d fix(deps): update module github.com/opencontainers/image-spec to v1.1.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-16 15:10:40 +00:00
a8d20e466b Merge pull request #21690 from containers/renovate/golangci-golangci-lint-1.x
[CI:DOCS] Update dependency golangci/golangci-lint to v1.56.2
2024-02-16 15:09:30 +00:00
2846027dc6 machine init: validate machine name and username
Validate the names with our name regex that we also use for
containers/pods. While we technically do not need to be that strict, I
think it makes sense to match containers. The most important bit of this
validation is that we exclude the use of / and \ which breaks all our
file paths as we just use this in the name an when machine write the
file it ends up being in a subdir which breaks the reading side. Also
other special characters could cause trouble for the URL parsing in the
machine connection URL.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-16 15:58:39 +01:00
fa0937affe Merge pull request #21682 from edsantiago/manpages-nested-structs
[CI:DOCS] man-page xref: make nested-structure warnings fatal
2024-02-16 14:48:34 +00:00
8be1c0b042 [CI:DOCS] Update dependency golangci/golangci-lint to v1.56.2
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-02-16 14:08:05 +00:00
abb5300532 Merge pull request #21643 from baude/fcospruning
Prune FCOS related code
2024-02-16 14:06:29 +00:00
30a18fc02d pkg/machine: make only one AddConnection() call
This function has to read/write the connections file as such it should
only ever be called once otherwise we read/write the same file twice
which makes no sense. Also cleanup the fucntion a bit and make it
private as there are no external callers.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-16 14:58:17 +01:00
9bc94dd99c Merge pull request #21651 from containers/renovate/docker.io-library-golang-1.x
chore(deps): update docker.io/library/golang docker tag to v1.22
2024-02-16 13:55:17 +00:00
7f2a6c735f Bump to v5.0.0-dev
Signed-off-by: Matt Heon <mheon@redhat.com>
2024-02-16 08:43:28 -05:00
f620aa0fbd Bump to v5.0.0-rc2
Signed-off-by: Matt Heon <mheon@redhat.com>
v5.0.0-rc2
2024-02-16 08:43:11 -05:00
d60757cca6 pkg/machine: cleanup MakeSSHURL
Remove unnecessary type redirection and just make it a normal function.
Also unexport it and move the test as it does not need to be public and
remove the default value assignments from the struct.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-02-16 14:41:14 +01:00
e0a7668547 Improve cross platform support in QEMU machine sources
Signed-off-by: Arthur Sengileyev <arthur.sengileyev@gmail.com>
2024-02-16 12:49:54 +02:00
bd0a9e9031 Fix remove docker.sock symlink
Signed-off-by: Shion Tanaka <shtanaka@redhat.com>
2024-02-16 12:35:38 +09:00
1f64ae10f6 Prune FCOS related code
Given the switch to pulling oci artifacts for podman, we no longer need
a fair bit of fedora coreos code for automatically downloading images.

[NO NEW TESTS NEEDED]

Signed-off-by: Brent Baude <bbaude@redhat.com>
2024-02-15 21:05:17 -06:00
4fffa78eec Manually discover wsl.exe location
Works around a problem where recent Windows updates do not always redirect the
system wsl to the app store wsl version correctly.

Signed-off-by: Jason T. Greene <jason.greene@redhat.com>
2024-02-15 16:31:10 -06:00
889454104e Turn WSL machine tests back on
[NO NEW TESTS NEEDED]

Signed-off-by: Brent Baude <bbaude@redhat.com>
2024-02-15 16:31:10 -06:00
5fc351a67a Merge pull request #21668 from Luap99/machine-pull-interrupt
machine: ocipull do not error if downloaddir exists
2024-02-15 21:35:54 +00:00
a9401deadd Build tag out QEMU for Darwin
Macs no longer support QEMU as a provider, build tag it out.

Signed-off-by: Ashley Cui <acui@redhat.com>
2024-02-15 15:53:06 -05:00
bed619ca3d Merge pull request #21664 from n1hility/wsl-fix-conflict
Fixes VM name conflict checking with WSL
2024-02-15 20:24:22 +00:00
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
1141946e67 Merge pull request #21673 from Luap99/qemu-netdev-socket
machine/qemu: use extra gvproxy socket
2024-02-15 18:06:40 +00:00