-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid host socket when switching rootful mode on macOS #13783
Comments
Does it work after machine stop && machine start again? I am not sure if we can change the socket while the VM is running. |
on restart yes. But without restart, clients using the socket will display different containers/images than the If it's not possible to change the socket, probably it should imply a restart of the machine. when restarting it'll use the right socket
while in rootless mode
|
Right it just stages the change, you have to restart for it to take affect. It should probably print something here. Alternatively we could detect if the machine instance is running and disallow changes. IMO it doesn't make sense to automatically restart since its destructive and unexpected. |
I'm fine also on the proposal to disallow changes on a running machine. In all cases I'm expecting consistency between CLI and socket. Because for now CLI may not use what is provided by the socket. (cli is switched on the fly while socket require a restart) |
Ah yes good point that the CLI changes immediately, that points to just disallowing when running |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
With podman and machines, we can configure the rootless/rootful mode.
But if I configure the machine in rootful mode, the macOS host socket is still bound to the rootless mode
Steps to reproduce the issue:
podman machine init
) +podman machine start
podman machine set --rootful
podman run docker.io/httpd
the container is not listed
Describe the results you received:
the container is not listed from the podman.sock on the host
Describe the results you expected:
the container should be listed from the podman.sock as it should be mapped to the rootful socket.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/main/troubleshooting.md)
Yes/No
Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: