Closed dleehr closed 5 months ago
podman machine init is supposed to fail and error out if, if the a connection with the same name already exists. Not sure why this is not the case for you.
Destroy it
Can you please be specific what commands are used?
Can you check if #22587 is the issue you are seeing?
As I never heard anything back closing
Issue Description
Using Podman 5 and Podman Machine, which is working great overall, very pleased with the improvements on macOS over Podman 4. I created a machine, then destroyed it and re-created it (to be rootful and maybe increase resources). After re-creating I was not able to access using the podman CLI, got a connection refused error from the ssh connection. docker CLI using the socket worked.
Steps to reproduce the issue
Steps to reproduce the issue
podman ps
Describe the results you received
After creating the new machine, podman machine didn't update the default in my
~/.config/containers/podman-connections.json
file. It still had the ssh port from my deleted podman machine., registered, so anypodman
commands would fail.docker
commands that used the socket worked, but not podman commandsI manually edited the file to correct the ssh port and that fixed the issue
Describe the results you expected
I expect podman machine to check my connections file and be able to repair it if the machine that podman machine created (and allows me to
ssh
to) is not listed in this file. Automatic repair would be nice, but a warning and a repair command would be great too.podman info output
Podman in a container
No
Privileged Or Rootless
Privileged
Upstream Latest Release
No
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