containers / podman

Podman: A tool for managing OCI containers and pods.
https://podman.io
Apache License 2.0
22.82k stars 2.33k forks source link

On Windows, podman machine provider config file gets deleted during an update #23244

Closed l0rd closed 1 month ago

l0rd commented 1 month ago

Issue Description

On a fresh Podman v5.1 installation, the windows installer creates the file $env:programdata\containers\containers.conf.d\99-podman-machine-provider.conf where the machine provider is specified.

The file gets deleted when upgrading to v5.2. As a consequence, after the upgrade, podman will use the default machine provider (WSL), even if the user had selected Hyper-V during v5.1 installation.

Steps to reproduce the issue

  1. Run the windows installer (podman-5.1.1-setup.exe)
  2. Check that the machine provider config file exists
  3. Run a more recent version of the windows installer (i.e. the manually built podman-5.2.0-dev-setup.exe)

Describe the results you received

The machine provider config file is deleted

Describe the results you expected

The machine provider config file should be there.

podman info output

N/A

Podman in a container

No

Privileged Or Rootless

None

Upstream Latest Release

Yes

Additional environment details

Additional environment details

Additional information

Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting

l0rd commented 1 month ago

I have started a discussion on the best way to solve this problem here.